file
for lines containing a match to the given pattern
.
/bin/csh is shell command interpreter with a C-like syntax.
The first command-line argument $1
is the URL and the second argument $2
is the ISBN, the pattern
.
~wenchen/public_html/cgi-bin/351/week6/Sequential.sh | |
|
O(n)
operation, direct access is O(1)
. No matter how large the file is, we can still get to the record we want with a single seek. The major problem with direct access is knowing where the beginning of the required record is.