Hi
I am faceing a problem with a space in file name.
I want to write a script which will open a file that file contain others file name, among them few file name contain space.
>cat checkfile
file1
file2
new file
file no
Here the file 'new file' and 'file no' contain space.When i trying to print contain of the file 'new file' from for loop it is giving error like,
cat: new: No such file or directory
cat: file: No such file or directory
cat: file: No such file or directory
cat: no: No such file or directory
Please give suggestion how do i resolve.Thanks in advance.
Thanks,
-ASK
I am faceing a problem with a space in file name.
I want to write a script which will open a file that file contain others file name, among them few file name contain space.
>cat checkfile
file1
file2
new file
file no
Here the file 'new file' and 'file no' contain space.When i trying to print contain of the file 'new file' from for loop it is giving error like,
cat: new: No such file or directory
cat: file: No such file or directory
cat: file: No such file or directory
cat: no: No such file or directory
Please give suggestion how do i resolve.Thanks in advance.
Thanks,
-ASK
Comment