On Wed, 6 Feb 2002, [iso-8859-1] Steve Kieu wrote:

>
> Hi,
>
> How can I tell ls to display the "\ " in a file name
> or directory name"

ls -b1

> How can I tell ls to make its output as a continuous
> string like "Test\ This"


>
> Well the real problem is ; I want to convert every mp3
> file in a directory to ogg vorbis, and the file name
> has the \  .  I use mpg123 to convert to wav file and
> oggenc to encode to ogg;
>
> I attchaed my script here ..
>
> But it doesn't work as expected because the file name
> has "\ "; is ther any way to work around it?

Using 'ls -b' should work in most instances. If not, consider generating
a temporary filelist then using awk to process the list. This works
because awk understands the line breaks between records, versus bash
which may assume the space delimits commands.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to