Spaces Between Words in Files
Doug Gwyn
gwyn at smoke.brl.mil
Sun Nov 18 02:27:46 AEST 1990
In article <1990Nov16.200510.22830 at cbnewsk.att.com> abar at cbnewsk.att.com (jerome.t.abar..jr) writes:
>The problem is a file that has two words with a space between
>them, such as "foo bar". How does a file like this get created,
>and how do you read it?
You just do it. If you're using a shell that parses the command
line into words split at occurrences of white space, you have to
somehow quote the space in the filename to keep the shell from
dividing it into two arguments:
cat 'foo bar'
>... it doesn't work when I try cat f*.
It ought to. The shell is supposed to expand the pattern f* into
a series of arguments, but not further parse the arguments.
More information about the Comp.unix.questions
mailing list