The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
reading 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
:
reading file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
12-10-2004
bhargav
Registered User
Join Date: Sep 2004
Location: USA
Posts: 511
x is the file there from previous o/p.
redirect previous awk to file "x" as follows
awk -F" " '{ print $6 }' file1 > x
and continue with next step ....
awk '
BEGIN { sum=0 ; } { sum+=$1 } END { print sum }' x
bhargav
View Public Profile
Find all posts by bhargav
Find bhargav's past nominations received
Find bhargav's present nominations given