find all extensions than make directories of extensions using find command?
by finalturismo from LinuxQuestions.org on (#589JD)
so iam trying to use find to locate all extensions recursively from all files recovered from a drive.
After i find all extensions i need to make folders for these extensions....
So far what i got is
Code:find . -iname "*" -exec mkdir {} \;Problem is i only need to make folders with the same name as the extensions. I some how need to subtract all text before the last period and push the results back into mkdir....
been messing with this for hours... i have found a few bash scripts that do the job, but i would rather get bits of code and put it together my self to help me understand bash scripting a little more.
The operators are what confuse me in linux....


After i find all extensions i need to make folders for these extensions....
So far what i got is
Code:find . -iname "*" -exec mkdir {} \;Problem is i only need to make folders with the same name as the extensions. I some how need to subtract all text before the last period and push the results back into mkdir....
been messing with this for hours... i have found a few bash scripts that do the job, but i would rather get bits of code and put it together my self to help me understand bash scripting a little more.
The operators are what confuse me in linux....