When trying to escape special character * - it doesn't seem to work. In korn shell trying to store a local variable as follows
sample=test*
echo $sample - gets all the file names starting with test* , instead i want to literally store the value test* into a variable. I tried escaping with \, with single quotes, with double quotes - nothing helped. I am in Sun Solaris OS
Please provide suggestions
Greatly appreciate it.
Thanks
sample='test*'
echo "${sample}"
you can also turn globbing off.
set -f
Thanks for both of your reply.
Both worked.
Thank you very much