[svlug] looping through a file line by line
William R Ward
bill at wards.net
Tue Apr 22 00:19:23 PDT 2003
John McDonnell writes:
>Evening all,
>
>I have a file that I want to split up line by line and I can't seem to do
>this properly. Googling isn't exactly helpful - it turns up many results,
>all with the search terms, but the S/N is pretty low.
>
>Anyway, how should I go abuot doing this? Using 'for' and eitehr cut or
>cat gives me each word.
Some kind of "perl -ne ...." command would do the trick. What is it
you want to do to each line?
--Bill.
--
William R Ward bill at wards.net http://www.wards.net/~bill/
-----------------------------------------------------------------------------
"A foolish consistency is the hobgoblin of little minds, adored by
little statesmen and philosophers and divines." - Emerson
More information about the svlug
mailing list