Extract filename and extension in Bash
First, get file name without the path: Alternatively, you can focus on the last ‘/’ of the path instead of the ‘.’ which should work even if you have unpredictable file extensions: You may want to check the documentation : On the web at section “3.5.3 Shell Parameter Expansion“ In the bash manpage at section … Read more