Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 0002 T00005 006 15
- 0004 T00004 012 26
- .
- .
- etc
- T00001 Larry Lastname Corley 555 555-5555
- T00002 Ron Lastname Coreley 555 111-1111
- .
- .
- etc
- # of sections | Instructor ID # | FirstName | LastName
- $ cat sections/sem092 | sort -k 2 | awk '{ print $2 }' | uniq -c
- Num. of Sections Taught | Instructor ID #
- cat sections/sem092 | sort -k 2 | awk '{ print $2 }' | uniq -c > firstPart.txt
- cat $1 | while read line; do
- instructorID=`echo $line | awk '{print $2}'`
- name=`grep $instructorID instructorList | awk '{print $2 " " $4}'`
- echo "$line $name"
- done
- 5 T00005
- bash searchInstructorName.sh firstPart.txt
- cat $1 | sort -k 2 | awk '{ print $2 }' | uniq -c | while read line; do
- instructorID=`echo $line | awk '{print $2}'`
- name=`grep $instructorID $2 | awk '{print $2 " " $4}'`
- echo "$line $name"
- done
- bash searchInstructorInfo.sh sections/sem092 instructorList
- cat sections/sem092 | sort -k 2 | awk '{ print $2 }' | uniq -c > no3
- paste instructors | awk '{ print $2 " " $3 }' > no3n
- #guess I could have just used cat above
- paste no3 no3n
Add Comment
Please, Sign In to add comment