massmaharaj Posted January 14, 2015 Report Posted January 14, 2015 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
sigsegv Posted January 14, 2015 Report Posted January 14, 2015 sed -u 's/1501$/1401/g' /ab/cd/de/a.csv
SamosaChai Posted January 14, 2015 Report Posted January 14, 2015 sed -i 's/1501/1401/g' /ab/cd/de/a.csv Take file back up and try above command. I am 90% sure
sigsegv Posted January 14, 2015 Report Posted January 14, 2015 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
k2s Posted January 14, 2015 Report Posted January 14, 2015 sed -u 's/1501$/1401/g' /ab/cd/de/a.csv :police:
Recommended Posts