William Black wrote:
Hello All

Hello,

I'm tryiing to search and replace in both perl and korn shell.

For Example:

X=G1234V00

I want to replace all occurences of 'V' with 'v' in both perl and korn shell

You can use tr in both perl:

perl -pe'tr/V/v/' file.in > file.out

and the shell:

tr V v < file.in > file.out


John -- use Perl; program fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to