Jump to content

Unix Experts Pls Help


Recommended Posts

Posted

sed -u 's/1501$/1404/'  /ab/cd/de/a.csv

 

I want to replace 1501 to 1401 

 

and it is the last column and delimieted by comma 

 

i am trying to do it 

 

 

i have i also it not doing well can some pls help 

Posted

sed -i 's/1501/1401/g' /ab/cd/de/a.csv

 

Take file back up and try above command. I am 90% sure

Posted

sed -u 's/1501$/1401/g'  /ab/cd/de/a.csv

this shal work for lines ending with 1501

 

sed -u 's/1501$$/1401/g'  /ab/cd/de/a.csv

×
×
  • Create New...