Scott Taylor wrote:
If you're lucky enough to have bash V2, use (faster):
for f in *;do mv -i "$f" "${f// /}";done
otherwise:
for f in *;do mv -i "$f" "$(echo $f|tr -d ' ')";done
This last works, it also works in more then just bash so I like it best. I have more then one OS that store Windows files for users. :)
I don't remember using echo in it last time but, it works...
Cheers.
Scott.
- : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html