in reply to Re: one liner with separate input file?
in thread one liner with separate input file?
I tried your suggestion of a while loop, with redirect in.
I am using a test file of 5 ip addresses instead of the whole list. I also have a copy of the original script to see how each solution works. The stdout produced:
Can't open if: No such file or directory.
Can't open /66.22.11.24/: No such file or directory.
Can't open if: No such file or directory.
Can't open /66.22.44.28/: No such file or directory.
Can't open if: No such file or directory.
Can't open /66.22.44.18/: No such file or directory.
Can't open if: No such file or directory.
Can't open /66.33.22.23/: No such file or directory.
Can't open if: No such file or directory.
Can't open /66.33.22.24/: No such file or directory.
The script did get modified, but it put a "#" at the begining of every line, and repeated it 5 times.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: one liner with separate input file?
by FreeBeerReekingMonk (Deacon) on Apr 15, 2015 at 22:35 UTC |