bash scripting question
From: Francisco (fran575_at_mailandnews.com)
Date: 08/10/03
- Next message: Davide Bianchi: "Re: bash scripting question"
- Previous message: Ed Murphy: "Re: "ABC Consumer Reports" doesn't recommend Linux"
- Next in thread: Davide Bianchi: "Re: bash scripting question"
- Reply: Davide Bianchi: "Re: bash scripting question"
- Reply: Floyd Davidson: "Re: bash scripting question"
- Reply: Chris F.A. Johnson: "Re: bash scripting question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 10 Aug 2003 03:13:45 -0300
Say I want to decode with lame a lot of files in one dir, I do the
following:
for n in `ls *.mp3`;do lame --decode $n; done
This works great if files dont have spaces, but if there are spaces the
scripts fails because $n cantains only the fragment of the files names
until a space occur.
So, is there a solution to this?, how should I do it?
Thank you.
- Next message: Davide Bianchi: "Re: bash scripting question"
- Previous message: Ed Murphy: "Re: "ABC Consumer Reports" doesn't recommend Linux"
- Next in thread: Davide Bianchi: "Re: bash scripting question"
- Reply: Davide Bianchi: "Re: bash scripting question"
- Reply: Floyd Davidson: "Re: bash scripting question"
- Reply: Chris F.A. Johnson: "Re: bash scripting question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|