[kwlug disc.] bash script basics
Richard Weait
richard at weait.com
Fri Feb 9 19:19:32 EST 2007
I'm looking for a bash script solution for what must be a common
situation. But I don't have the script-fu to solve this. And my
google-fu has failed me, too.
A CLI tool accepts three arguments. I'd like to feed the CLI tool
with a series of these coordinates. And I'd like to have comments in
the file that are ignored rather than sent to the CLI. Surely this is
a 5 or 6 line script. No?
How do I feed the lines of arguments to my command?
I suppose perl could do this in four punctuation symbols.
The data file might look like this.
#
# this is a fake data file
#
1 2 3 # three whitespace separated numbers
4 5 6
7 8 9
10 11 12 # each number up to 5 or 6 digits
# comments
13 14 15 # real data is arbitrary, not sequential
16 17 18
Help?
More information about the KWLUG-Disc
mailing list