Programming and Scripting :: Searching for a command...



Now this one will really show my age.

ed -s .filetool.lst << EOF
3,3p
EOF

Using ed will print the third line of a line.

Does anyone still use ed ?

Quote (roberts @ July 27 2006,15:53)
Make sure you use two equal signs and not one

awk 'NR == 3' .filetool.lst

Ah...that's the stuff.  thanks.
That command came very useful. See my automount script post.

original here.