The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
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-25-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,175
We need to avoid "echo" because the \t contained in the string becomes a tab!
Try this.

Code:
#!/bin/ksh
print -R "c:\test\sample\programs"|sed -e 's/\\/\\\\/g'

c:\\test\\sample\\programs