The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 09-03-2001
patvdv's Avatar
patvdv patvdv is offline
Registered User
 

Join Date: Jul 2001
Location: Belgium
Posts: 83
Quotes

Using KSH, use quotes around your 'filename':

Code:
#/usr/bin/ksh
TEST=$1
echo $1 > "$1"
exit
[patrick@homer-lux patrick]$ ./test.ksh justdoit
[patrick@homer-lux patrick]$ ll justdoit
-rw-r--r--    1 patrick  sys             9 Sep  3 21:09 justdoit
[patrick@homer-lux patrick]$ more justdoit
justdoit
[patrick@homer-lux patrick]$
__________________
Patrick Van der Veken - UNIX consultant (c) 2001 - 2001 http://www.baanboard.com - http://www.ux-core.com
'True strength lies in gentleness' - Irish proverb