Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # Move into the directory "BC-100" (the name of our quarto scanner), then move into the subdirectory named after whichever project we're scanning, then move into a staging subdirectory.
- cd BC-100/$1/$2
- # Takes the plain text "list.txt," which is saved inside the staging subdirectory, and makes a new subdirectory for each identifier on the list.
- cat list.txt | xargs mkdir
- # For each identifier subdirectory,
- for d in */; do
- # Terminal moves into that directory and
- cd $d
- # creates three subdirectories inside named "01_JPGs_cropped,"
- mkdir 01_JPGs_cropped
- # "02_JP2s,"
- mkdir 02_JP2s
- # and "03_zipped_JP2_file," respectively.
- mkdir 03_zipped_JP2_file
- # It also deposits a blank text file in each identifier folder for employees to write notes in.
- touch Notes.txt
- cd ..
- done
Add Comment
Please, Sign In to add comment