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 10-29-2008
samir_standing samir_standing is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 11
The exact path of data.txt i.e. /home/samir/datas/data.txt
is stored in a variable.

I want /home/samir/datas i.e. path not includes the filename
to estract and store into another variable.

Simply I want to cut /home/samir/datas from /home/samir/datas/data.txt