7
rated 0 times
[
7]
[
0]
/ answers: 1 / hits: 851
/ 1 Year ago, thu, november 17, 2022, 3:34:58
I have the file "test.txt" that contains:
Val1 = '59'
Val2 = '76'
Val3 = '42'
Val4 = '53'
I with this command:
perl -pe "s/^Val2 = '(.*)'/1/" test.txt
I Want:
76
But I obtain:
Val1 = '59'
76
Val3 = '42'
Val4 = '53'
More From » bash