The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Help with awk
.
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
:
Help with awk
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
08-19-2008
palsevlohit_123
Registered User
Join Date: Aug 2008
Location: India-Chennai
Posts: 120
while read line
do
curr=`echo $line |grep -i "vg"|wc -l|awk '{print $1}'`
if [ "$curr" = "1" ]
then
echo "\n$line\c"
else
echo ":$line\c"
fi
done < your_file_here
palsevlohit_123
View Public Profile
Find all posts by palsevlohit_123
Find palsevlohit_123's past nominations received
Find palsevlohit_123's present nominations given