1

Bash to Batch conversion

view story
linux-howto

http://stackoverflow.com – After making a bash file that creates directories and then transfers files from one directory to each created directories I am curious as to how I'd go about doing this in a batch file. Here's the bash code: #!/bin/bash # For each item in file named in $1, make a directory with this name. # and copy all files named in file $2 from templates folder to new directory for user in `cat $1` do if [ -d $user ] then echo Directory $user already exists rm -r $user echo $user has been deleted fi mkdir $user echo Directory $user created for file in `cat $2` do (HowTos)