The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-16-2008
hikrishn hikrishn is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 4
Quote:
Originally Posted by ghostdog74 View Post
when you use the variable $1, use double quotes.
yeah But it is not working in following case..can u pls suggest on this
Here is the input parameter it comes for me.

$ ./sample.ksh '/root/krishna mohan/file*.txt'

sample.ksh
********

input="$1"

ls -m $input
ls -m "$input"

**********

above command are not able to interpret and list the exact files..

Thanks
Krishna