I need to get string between 2nd # to .(dot) using unix command.
For ex string is TEST#CV01#170403053938.csv
output should be 170403053938
Can some one please advice how to get.
Could be done with sed (might be overkill), but for the sake of regex!
echo "TEST#CV01#170403053938.csv"|\
sed -e 's/\(.*#.*#\)\(.*\)\(\.csv\)/\2/'