I\'m trying to parse file names in specific directory. Filenames are of format:
token1_token2_token3_token(N-1)_token(N).sh
I need to cut the t
It can not be done with cut, How ever you can use sed or awk
cut
sed
awk
sed -r 's/(_[^_]+){2}$//g'