The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
Problem with cat with PERL Substitute
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Problem with cat with PERL Substitute
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
03-23-2007
Yogesh Sawant
Part Time Moderator and Full Time Dad
Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 767
when i put that system statement in a perl script, it gave those errors.
then this worked:
Code:
system ("cat FILENAME | perl -e 'while(<>) { s/XXX/YYY/g; print $_;}'");
Yogesh Sawant
View Public Profile
Visit Yogesh Sawant's homepage!
Find all posts by Yogesh Sawant