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 -->
  #4 (permalink)  
Old 01-25-2008
namishtiwari namishtiwari is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2007
Location: Bangalore
Posts: 377
Quote:
Originally Posted by awk View Post
filename $(pwd)
in ksh will give you the name of the directory you are in, not the complete path. I believe that is what you want. Add whatever you want to that to make your new directory.
I am creating these directories if they are not existing means run time i am doing that.

suppose i created a directory called--
abc/namsih
then the backup should go to
abc/namish/namish5

but in my case it is like that---
abc/namish/abc/namish5