Cannot cat file which has space in name in linux
Does putting quotation marks around the name not work?
cat "file name with space"
A third option would be
cat 'file name with space'
where the file name may contain everything but the '
.
If it does, such as file n'ame
, replace every '
with '\''
:
cat 'file n'\''ame'
Use the escape character '\' like this
cat file\ name\ with\ space