[Top][All Lists]

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

Re: Problems processing file list

From: Paul Jarc
Subject: Re: Problems processing file list
Date: Fri, 20 Dec 2002 19:03:33 -0500
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

Misbah Qidwai <address@hidden> wrote:
> I need help trying to process a file list that contains filenames
> which have escaped-spaces in the filename.

This list is about bugs/development of bash.  For help with writing
scripts, go to news:comp.unix.shell.  You'll find more help there.

> files=`ls -b .`
> for file in $files

You probably want to use something like "for file in *", and then use
double quotes around $file to protect it from word-splitting.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]