How to read a single line from a text file into a shell script.
How can I pull a specified line from a plain text file in a shell script?
Basically I need to pull line X from file Y. Assistance please. |
Hi,
Using sed is a possibility: LINE_FIVE="`sed -n '5p' infile`" Hope this helps. |
Yup, that is what I need.
Thanks! |
All times are GMT -5. The time now is 04:31 PM. |