Quote:
Originally Posted by stevie_velvet
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.