The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
truncating leading zeros of a column in a file
.
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
:
truncating leading zeros of a column in a file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
08-30-2007
nvuradi
Registered User
Join Date: Mar 2007
Posts: 23
hi i am getting the following error when i used the awk command
awk 'BEGIN{FS=OFS="|"}{$NF=$NF+0} 1' $filename
Error:
awk: syntax error near line 1
awk: bailing out near line 1
if possible can you explain what is this awk command doing here?
Thanks
Narendar
nvuradi
View Public Profile
Find all posts by nvuradi
Find nvuradi's past nominations received
Find nvuradi's present nominations given