For this exercise you will need to know the following new commands:
|UNIX Commands||Humdrum Commands|
Change directories to /var/share/Humdrum/Music824/misc/ and answer the following questions. For each question, identify the command(s) used, and (when asked) the answer.
COMMAND: grep '!.*4g' *
rid -DI * | grep '4g'
grep 'A Work Containing' *
COMMAND: grep -v '^[!*]' | grep 'OTL'
COMMAND: mint unusual01 | rid -GLI | grep -c 'm2'
ANSWER: 4 (not 5)
Notice that the string 'm2' occurs in a comment, so rid -GLI is necessary.
COMMAND: rid -GLD unusual03 | sort | uniq -c | sort -n
grep '^\*' unusual03 | sort | uniq -c | sort -n
ANSWER: *A (9 occurrences)
N.B. This presumes that the input contains only a single spine.
COMMAND: rid -d unusual05