Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to split this output

Status
Not open for further replies.

areza123

Programmer
Jul 4, 2002
60
IN
the command
FIRST_TEN_ARCHIVE = head -2 config/old_ls_out
# config/old_ls_out is a file
gives me the output ...
drwxr-xr-x 2 areza staff 96 Feb 25 13:56 config
-rwxr-xr-x 1 areza staff 1458 Feb 25 13:55 fm

I want to split this output so that FIRST_TEN_ARCHIVE gets initailized only with
-rwxr-xr-x 1 areza staff 1458 Feb 25 13:55 fm

i.e the 2nd line of output

Thanks in anticipation !

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top