 |
How do I read lines of data in a shell script? | Ask Dave Taylor
You can see how the cut program makes this a straightforward task, albeit one that can be done more quickly in other scripting languages like Perl. But if you want to work with shell scripts, the combination of a while read loop with the input redirected
www.askdavetaylor.com |
 |