I have a directory in the following format:
X is a number,
A are 3 or 4 character long strings.
I want to write a shell script file that does the following:
Zfrom the folder name
- create the string
- copy the file
string_Z.datfrom that directory
I'm lost as to how to extract specific patterns from
$PWD. The character positions of
Z don't have to be the same, as the number length and the length of
name can vary.