[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash question



>   for file in *.ogg; do
>     ogg123 "$file"
>   done
>
> (Since the double-quotes allow variable expansion, but force the
> result to be a single "world" for shell purposes.)

To deal with all (im)possible filenames, you could even do:
for file in *.ogg 
do
  ogg123 -- "$file"
done

Just in case you have filenames starting with '-'...

Greetings from the paranoid side ;-)
  Johannes

-- 
"More than machinery we need humanity" -- Charlie Chaplin, The Great 
Dictator

Attachment: pgpEHI69hunAn.pgp
Description: signature


Reply to: