The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Display Line numbers
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Display Line numbers
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-05-2009
Ikon
Registered User
Join Date: Jul 2008
Location: Phoenix, Arizona
Posts: 669
Code:
sed
= filename |
sed
'N;s/\n/\t/' or
sed
= filename |
sed
'N; s/^/ /; s/ *\(.\{6,\}\)\n/\1 /'
Last edited by Ikon; 01-05-2009 at
11:22 AM
..
Ikon
View Public Profile
Visit Ikon's homepage!
Find all posts by Ikon
Find Ikon's past nominations received
Find Ikon's present nominations given