Nice little script, robbak!
What if I want to change all "-" to "_" in the filenames? Is there a command for that too in bash?
Quote:
Originally Posted by robbak
Of course this may be a bashisim.
|
I guess it is. I tried it in Bourne shell:
Code:
$ for filename in *
> do
> mv "$filename" "${filename/-/_}"
> done
${filename/...}: Bad substitution