Hello, I am very new to shell scripting and have a directory path such as:
/usr/dev/blah/Arch/release/812-1235-P05/files/list and I want to output:
812-1235-P05
I think using
sed with a regex like [0-9]-[0-9]-[0-9]?[a-z] would be the way to go, but I am having much trouble getting it to work. Any suggestions? Thank you.