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

Join Date: Aug 2007
Location: Bangalore
Posts: 377
Directory inside directory problem

hii,

I have to create a directory under the same directory with the date +%a extension like this

BackupLocation=$BackupLocation/$BackupLocation$(date +%w)
but the problem is ---

if backuplocation is abc/dfg then accroding to the above statement it would be

abc/dfg/abc/dfg5

but i want it like this--

abc/dfg/dfg5

kindly give me some suggestions.