Quantcast
Channel: tail -f /dev/null
Viewing all articles
Browse latest Browse all 10

Process A File Line By Line In A Script

$
0
0

There are multiple ways to skin this cat.  For now one of the simplest.

#!/bin/sh

while read LINE
do
...DO SOME STUFF WITH THE ${LINE}...
done <somefile.txt

Replace “somefile.txt” with the file you want to process.


Viewing all articles
Browse latest Browse all 10

Trending Articles