How to use perl command

By avazquez65 ·
I?m using the per comando in this way:

perl -p -e 's/\|O\|/|0|/ig' bck_cust.txt
perl -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!

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Software Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums