I have a .dat file similar to example below:
1|sam |test|
2|eric |test|
3|james|test|
any idea how I can remove the pipe '|' at the end of the line and save it?
I have tried sed 's/.$//' file > file.nolast
I have a .dat file similar to example below:
1|sam |test|
2|eric |test|
3|james|test|
any idea how I can remove the pipe '|' at the end of the line and save it?
I have tried sed 's/.$//' file > file.nolast