The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to direct awk output to expr?
.
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
:
How to direct awk output to expr?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
04-21-2005
Perderabo
Unix Daemon
Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
About a hundred solutions here... For one, awk can do arithmetic.
export CNT=`wc -l ${QV_FILENAME} | awk '{print $1-2}'`
Perderabo
View Public Profile
Find all posts by Perderabo
Find Perderabo's past nominations received
Find Perderabo's present nominations given