The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
changing format
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
changing format
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
01-31-2008
ghostdog74
Registered User
Join Date: Sep 2006
Posts: 1,582
Code:
awk 'BEGIN{FS=",";OFS=" "} { $1=$1; print NR-1 , $0 } ' "file"
ghostdog74
View Public Profile
Find all posts by ghostdog74