Your code looks like you try to replace *any* number of spaces by *one* dot.
If you want to replace one or more spaces by one dot, tr/ /./ will not work.
You have to use s/ +/./g
In reply to Re: How can I opendir, replace all files containing a space with .?
by busunsl
in thread How can I opendir, replace all files containing a space with .?
by nkpgmartin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |