The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
using sed
.
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
:
using sed
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
03-17-2008
era
Guest
Posts: n/a
Bits:
0
[
Banking
]
You are getting outside the realm of what
sed
can reasonably do. At this point I would probably switch to
Perl
.
Code:
perl
-pe 's/\bFoot\b/Play/g;s/\bfoot\b/play/g; warn if m/[Ff]oot/' files ...
This should handle full stop and other punctuation, which the
sed
script won't (without additional tinkering).
era
Find 's past nominations received
Find 's present nominations given