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 -->
  #5 (permalink)  
Old 01-22-2008
fpmurphy fpmurphy is offline
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,122
Quote:
Originally Posted by stevie_velvet View Post
newfilename=${filename:2:6}.dgn

don't understand this line ? is this built into bash as i don't see a command...? even thought that was regular expression!
Yes, this is bash syntax. It takes characters 2 through 6 of filename, appends ".dgn" and assigns it to newfilename. Google for bash regular expressions and you wish find a number of tutorials on the subject.
Reply With Quote