The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
to print number one less than actual number
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
:
to print number one less than actual number
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
09-06-2007
namishtiwari
Registered User
Join Date: Aug 2007
Location: Bangalore
Posts: 288
or you can do something like this
for line in `cat $file`
do
line=`expr $line - 1`
echo $line
done
Thanks
Namish
namishtiwari
View Public Profile
Find all posts by namishtiwari