I have files with "multiple" extension , for better manipulation I would like to create new folder for each last extension but first I need to retrieve the last extension.
Just for example lets assume i have file called info.tar.tbz2
how could I get "tbz2" ?
One way that comes to my mind is using cut -d "."
but in this case I would need to specify -f
parameter of the last column, which I don't know how to achieve.
What is the fastest way to do it?