Thursday, March 24, 2011

chop the last character of a string in bash script

Use sed:
sed 's/.$//'

No comments:

Post a Comment