I need a little help with a bash command in Ubuntu 14.04.
I have a folder with many subfolders and some of the folder- and filenames have leading or tailing whitespaces. I like to rename these folders and files, but with the same filename, just without the whitespace an the beginning and the end of the filename. Like a recursive file-rename or something like that. I've tried it with sed, but i don't get it running like it should.
I hope somebody can help me.