Search Results

Search: Posts Made By: pravin27
2,331
Posted By pravin27
Still it's working fine at my end with my code...
Still it's working fine at my end with my code (post #2). Is it dos file? If yes then please substitute \r (CR/LF)first.
2,331
Posted By pravin27
Hi, It's working at my end. Could you please...
Hi, It's working at my end. Could you please attached your foo.cfg.
# cat foo.cfg
Test
Test_Account_1
Test_Account_2
# perl -nle 's/\bTest\b/Foo/g;print $_;' foo.cfg
Foo
Test_Account_1...
2,331
Posted By pravin27
Have you removed the \s ?
Have you removed the \s ?
2,331
Posted By pravin27
Try with \b, perl -pi -e...
Try with \b,
perl -pi -e 's/\b$CurrentName\b/$NewName/g' foo.cfg;
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 06:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy