0

I want to change extension of a file path and turn it into a full path. removing the first . and then the extension, adding new extension and current directory path.

something like this but I get a substitution error.

echo `pwd` $(echo ${${FILENAME#?}%.*}".spindens.cube")

I know I can do this by two different substitution steps, I was just going to learn from this community to code cleaner.

Thanks in advance

Sarah Aria
  • 109
  • 1

0 Answers0