[PD] OSX-filenames

Mathieu Bouchard matju at sympatico.ca
Tue Sep 23 03:21:10 CEST 2003


On Mon, 22 Sep 2003, Shintaro Miyazaki wrote:

> is there a way to replace all space-signs of my soundfiles into - signs?
> like drum 33 d.wav into drum-33-d.wav?
> Can you do that within the shell?
> is there like a comand for that?

for z in *; do a=`echo $z|sed 's/ /-/'g`; mv "$z" "$a";done

________________________________________________________________
Mathieu Bouchard                       http://artengine.ca/matju





More information about the Pd-list mailing list