You said
Quote:
I have file called '' The Holy Family's flight to Egypt ''.
|
You tried
Quote:
[nissanka@c83-250-108-126 ~]$ cat "$v8"
cat: The Holy Family's flight to Egypt : No such file or directory
|
So I guess you *don't* really have a file called "The Holy Family's flight to Egypt".
Or you do, and it exists in some other directory.
Who cares?
The point is:
1. A Linux file name can contain spaces (maybe unwise, but you can do it)
2. A Linux shell variable can also contain spaces (it's very common)
3. When Linux *EXPANDS* the shell variable, everything delimited by a space is BROKEN INTO A SEPARATE WORD
... But ...
4. You can KEEP your shell-variable-with-spaces as a SINGLE word ... by using quotes (").
That's the beginning and end of all I was trying to say.