I have one shell script that takes the filename for processing as an argument. for eg. ./BulkEdit.sh SampleFile.xls. In the script it reads the filename from "$1" and does the processing of that particular file read from command line. If i have space character in the file name, script doesnt get the file name properly and skips its processing. for eg. ./BulkEdit.sh Sample File.xls. It gives the error message as File "Sample" doesnot exist.
I have also tried the following things and it doesnt work.
./BulkEdit.sh "Sample File.xls" ./BulkEdit.sh 'Sample File.xls' ./BulkEdit.sh Sample\ File.xls
Please suggest me how it can be read.