1

Converting Windows batch to Linux script (Batch create symbolic links by first character)

view story
linux-howto

http://superuser.com – As a noob to Linux and scripting I'm unsure as to how to convert this into a linux script or even where to start. Essentially I want to create a script that creates alphabetized folders A-Z, symlink all folders in a directory to a the newly created sorted A-Z Directory so movies starting with A like Appleseed would be under the A folder. *note I tried just running this bat in wine but mklink doesn't exist and wouldn't work so well. ::Make folders with each letter of the alphabet under the "categorized" folder if not already created For %%M in (A B C D E F G H I J K L M N O P Q R S T U V W X Y (HowTos)