The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Reading files in directory
.
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 files in directory
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
09-04-2007
aajan
Registered User
Join Date: Jun 2007
Posts: 80
Try this!!!!!!!!!!!!!!!
sed
's/\(<moid>\)\(.*\)\(<\/moid>\)/\2/g' input file | cut -d"<" -f1 >countersource.txt
sed
's/\(<r>\)\(.*\)\(<\/r>\)/\2/g' input file |grep "[0-9]" |
sed
's/\(<moid>\)\(.*\)\(<\/moid>\)\(.*\)/\4/g' >countername.txt
aajan
View Public Profile
Find all posts by aajan
Find aajan's past nominations received
Find aajan's present nominations given