Guest User

Untitled

a guest
Jul 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # 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.
  4. cd BC-100/$1/$2
  5.  
  6. # Takes the plain text "list.txt," which is saved inside the staging subdirectory, and makes a new subdirectory for each identifier on the list.
  7. cat list.txt | xargs mkdir
  8. # For each identifier subdirectory,
  9. for d in */; do
  10. # Terminal moves into that directory and
  11. cd $d
  12. # creates three subdirectories inside named "01_JPGs_cropped,"
  13. mkdir 01_JPGs_cropped
  14. # "02_JP2s,"
  15. mkdir 02_JP2s
  16. # and "03_zipped_JP2_file," respectively.
  17. mkdir 03_zipped_JP2_file
  18. # It also deposits a blank text file in each identifier folder for employees to write notes in.
  19. touch Notes.txt
  20.  
  21. cd ..
  22. done
Add Comment
Please, Sign In to add comment