I need the help of all Unix Guru out there.
I have this output from my Cisco router:
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-TELCO-M), Version 12.2(8)T10, RELEASE SOFTWARE (fc1)
TAC Support: Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Fri 30-May-03 05:50 by kel
I tried using this command to combine all the lines into a single line:
sed -e :a -e '$!N;s/\n/ /;t a'
But it gave me an incomplete output. I don't understand the actual sed command (I just got it from one of the thread replies here). That's why I can't really modify it to format my data.
Any help will be appreciated.
I have this output from my Cisco router:
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-TELCO-M), Version 12.2(8)T10, RELEASE SOFTWARE (fc1)
TAC Support: Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Fri 30-May-03 05:50 by kel
I tried using this command to combine all the lines into a single line:
sed -e :a -e '$!N;s/\n/ /;t a'
But it gave me an incomplete output. I don't understand the actual sed command (I just got it from one of the thread replies here). That's why I can't really modify it to format my data.
Any help will be appreciated.