Hi ..

I want to make a shell script to take input from a text file and process each line in turn.

ie

$myscript < textfile

then in the script it goes

for each $line in $textfile do
        something


but i can't work out the syntax. $1 is the input stream isn't it? that's about as far as i got. .. :-(


well ok I have an iPod and i want to be able to copy mp3's off it, using a list of song names as input for a 'find ./ 'name' -exec cp {}' style command. it's not hard, but it's beyond me at this stage.

advice (or a URL for a good scripting tutorial :) gratefully received..

cheers,
..S.

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to