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 -->
#
5
(
permalink
)
08-30-2007
namishtiwari
Registered User
Join Date: Aug 2007
Location: Bangalore
Posts: 377
Hi,
Try this code,its not tested though..
#!/bin/ksh
cat test19 | for i in file
do
cut -d"|" -f5 | tr -s "00" $i
done
namishtiwari
View Public Profile
Find all posts by namishtiwari
Find namishtiwari's past nominations received
Find namishtiwari's present nominations given