The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
awk problem
.
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
:
awk problem
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
06-29-2006
vish_indian
Registered User
Join Date: Jun 2006
Location: Delhi, India
Posts: 92
re: awk problem
This should work
cat <filename> | awk '$0!~/\*/{print}' > desired_file
All its doing is matching if '*' exists within a line. If it doesn't it prints the line. You can redirect the output to a file to get the desired lines.
vish_indian
View Public Profile
Find all posts by vish_indian
Find vish_indian's past nominations received
Find vish_indian's present nominations given