Just a thought:
perl -e'($z = $_) =~ s/\s+/_/g, rename $_, $z or warn "$_: $!\n" for @ +ARGV' /some/directory/* /another/directory/*
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
In reply to Re: convert whitespaces to underscores
by Juerd
in thread convert whitespaces to underscores
by painehope
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |