L
Lowell Kirsh
I want to write a script that will take an optional filename as a
command line argument and will use stdin if no parameter is supplied.
What the script does is count the number of unique lines in a file. For
example I want 'theScript foo' to act like:
system "uniq < foo | wc -l"
but if no parameter is supplied it should act like:
system "uniq < {standard input} | wc -l"
Does this make sense?
Lowell
command line argument and will use stdin if no parameter is supplied.
What the script does is count the number of unique lines in a file. For
example I want 'theScript foo' to act like:
system "uniq < foo | wc -l"
but if no parameter is supplied it should act like:
system "uniq < {standard input} | wc -l"
Does this make sense?
Lowell