Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: Spaces Between Words in Files Keywords: How and Why? Message-ID: <14513@smoke.brl.mil> Date: 17 Nov 90 15:27:46 GMT References: <1990Nov16.200510.22830@cbnewsk.att.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 15 In article <1990Nov16.200510.22830@cbnewsk.att.com> abar@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.