source: other-projects/is-sheet-music-encore/trunk/COMPX520-MAP-DOWNLOADER-PNG.sh@ 33589

Last change on this file since 33589 was 33589, checked in by cpb16, 5 years ago

final01. Need Map results still

  • Property svn:executable set to *
File size: 459 bytes
Line 
1#!/bin/bash
2#https://stackoverflow.com/questions/15148796/get-string-after-character
3file_name=$1
4location=$2
5
6IFS=$'\n'
7for id in `cat $file_name` ; do
8 new_id=$(echo "$id" | awk 'BEGIN {FS="\t"}; {print $1}')
9 page_num=$(echo "$id" | awk 'BEGIN {FS="\t"}; {print $2}')
10 echo "id: $new_id page_num: $page_num"
11 echo ""
12 ./COMPX520-MAP-RUN-PNG-hi-res.sh $new_id $page_num $location
13 #./firstlast-RUN-PNG-hi-res.sh $new_id $page_num $location
14 sleep 2
15done
Note: See TracBrowser for help on using the repository browser.