Question Locked

How to use perl command

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I?m using the per comando in this way:

perl -i.new -p -e 's/\|O\|/|0|/ig' bck_cust.txt
perl -i.new -p -e 's/\|S\|/|1|/ig' bck_cust.txt

The first line replace a 0 instead of and O
The second line replace a 1 instead of a S

?? How can I make it to do it in just one line instead o two !?

Than you for your help!

1 reply

This discussion is closed to new replies.