Skip to main content

Thread: Creating a folder for each file in a directory


hello,
need create folder every single file in directory, possibly making folder have same name file containing.
possible via terminal?
thanks!

here 1 possible method:

code:
for in *  mkdir "$i"  done
you might prefer use /the/actual/path instead of asterisk.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Creating a folder for each file in a directory


Ubuntu

Comments