The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Reading files in directory
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
:
Reading files in directory
View Single Post in UNIX 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