I have a file named test's file.txt
inside test's dir
directory.
So the file-path becomes test's dir/test's file.txt
.
I want to cat the content of the file but since the file contains an apostrophe and a space it is giving me hard time achieving that.
I have tried several commands including
sh -c "cat 'test's dir/test's file.txt'"
sh -c 'cat "test's dir/test's file.txt"'
sh -c "cat '"'"'test's dir/test's file.txt'"'"'"
sh -c 'cat "test\'s\ dir/test\'s\ file.txt"'
and many more ... But none of them is working.
Some help would be really appreciated. Thank you!