Tuesday, December 14, 2010

removing trailing whitespace with sed


sed -i '' -e's/[ \t]*$//' $1


the full script can be found here
https://github.com/yikulju/MacGyver/blob/master/rwh.sh

No comments:

Post a Comment