At 05:19 AM 8/23/2008, David Banning wrote:
I am running into a problem with the space character in filenames.
For instance, If I want to run the script;
for x in `ls`
do
echo $x
done
then filenames that have a space in them ie: "john smith.jpg"
are processed by my script as two names, "john"
Polytropon wrote:
Well, it's completely possible to create a file name like:
This is my *favourite* photo from "Cats" \ by Bob & Jane / my wife ~ 2008
`musical'.JPG
Um... actually you cannot create that as a filename on UFS. There are
precisely two characters you cannot use in a filename.
On Sat, 23 Aug 2008 10:16:36 -0400, Thomas Dickey <[EMAIL PROTECTED]> wrote:
> spaces won't go away, and since they're legal in filenames, one may as
> well handle them.
Well, it's completely possible to create a file name like:
This is my *favourite* photo from "Cats" \ by Bob & Jane / my wife ~
On Sat, Aug 23, 2008 at 04:09:57PM +0200, Polytropon wrote:
> On Sat, 23 Aug 2008 06:19:42 -0400, David Banning <[EMAIL PROTECTED]> wrote:
> > I am running into a problem with the space character in filenames.
> > For instance, If I want to run the script;
> >
> > for x in `ls`
> > do
> > echo $
On Sat, 23 Aug 2008 06:19:42 -0400, David Banning <[EMAIL PROTECTED]> wrote:
> I am running into a problem with the space character in filenames.
> For instance, If I want to run the script;
>
> for x in `ls`
> do
> echo $x
> done
>
> then filenames that have a space in them ie: "john smith.jpg
RW writes:
> > I am running into a problem with the space character in filenames.
> > For instance, If I want to run the script;
> >
> > for x in `ls`
> > do
> > echo $x
> > done
>
> for x in *
There's the (poorly documented, IMO) IFS (internal field
separator) shell variabl
On Sat, 23 Aug 2008 06:19:42 -0400
David Banning <[EMAIL PROTECTED]> wrote:
> I am running into a problem with the space character in filenames.
> For instance, If I want to run the script;
>
> for x in `ls`
> do
> echo $x
> done
for x in *
___
freeb
I am running into a problem with the space character in filenames.
For instance, If I want to run the script;
for x in `ls`
do
echo $x
done
then filenames that have a space in them ie: "john smith.jpg"
are processed by my script as two names, "john" and "smith.jpg".
What is the best way to dea