Bash Scripting - String Operations
Consider this Bash snippet:
It outputs
file="archive.tar.gz"
echo ${file%*.gz}It outputs
archive.tar. You want to remove the entire suffix .tar.gz. What is the fix?