12 Aug
2006
12 Aug
'06
00:23
On Saturday 12 August 2006 01:24, Dylan wrote:
I'm working on a script which extracts the tags from ogg and mp3 files and distributes the files in a directory structure according to the tag contents.
I've found that some files have tags with excess whitespace at the end. What methods are there for removing this whitespace in a bash script?
You can try sed or perl, for example: stephan@owl:~/cvs/s11n.net/SpiderApe> echo "with trailing spaces " | perl -pe 's|\s*$||' with trailing spacesstephan@owl:~/cvs/s11n.net/SpiderApe> -- ----- stephan@s11n.net http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts