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 -->
#
5
(
permalink
)
09-06-2007
manas_ranjan
Registered User
Join Date: Jul 2007
Location: PUNE
Posts: 171
Hey please try this one,
awk ' { printf ("%d\n", $0-1) } ' <<File Name>>
manas_ranjan
View Public Profile
Find all posts by manas_ranjan