The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
extracting a set of strings from a text file
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
:
extracting a set of strings from a text file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
09-20-2007
jim mcnamara
...@...
Join Date: Feb 2004
Location: NM
Posts: 4,365
few people here can write C shell - here's awk & grep
Code:
awk -F'*' '{print $1}' myfile | grep '*' | sort -u > unique grep -v '*' myfile | sort >> unique
I hope redirection works the same in csh as everywhere else....
jim mcnamara
View Public Profile
Find all posts by jim mcnamara