Use sed To Extract Filename, Extension, and Directory From Path
sed Expression     echo $var | sed 's/\(.*\)\/\(.*\)\.\(.*\)$/\2\n\3\n\1/'     The regex use...
Tags: tutorial, regex, shell, todayilearned