Bash script for files with spaces in the filenames
Tim Fenn
fenn at stanford.edu
Thu Feb 16 11:03:15 UTC 2006
On Thu, Feb 16, 2006 at 11:29:04AM +0200, Dotan Cohen wrote:
> Another friend has provided me with a simple bash script that performs
> an operation on all the files of a directory. However, many of the
> file names contain spaces. How can I modify the following code to work
> on files with spaces? The directory is on a mounted FAT32 partition.
>
xargs, yo!
find $(pwd) -name "*.mp3" -print0 | xargs -0 eyeD3 --force-update --set-encoding=utf8
HTH,
Tim
--
Morals? I eat communism and $h!t America, brother. --Seanbaby
More information about the users
mailing list