Handling filenames with spaces

If you have a file which is present when you execute an ls but you cannot access it, it is possible that the filename may contain space(s).

In this case, you will need to quote the file to manipulate/access it or use pattern matching to access it.

Example:

Suppose you have a file named spacey.end which contains a trailing space.

	This won't work.

		% cat spacey.end
		cat: spacey.end: No such file or directory

	These will.

		% cat "spacey.end "
		text goes here

		% cat spacey*
		text goes here
Embedded spaces may occur anywhere in a filename:
	" front.space"	"mid space"	"  m i x e d "
See also the Sun SPARCstation Student User's Guide, section 4.4.1 naming conventions.

Last Update: 1/10/94 JGW