For this exercise you will need to know the following new commands:
UNIX Commands | Humdrum Commands |
---|---|
rid | |
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' *
OR
rid -DI * | grep '4g'
grep 'A Work Containing' *
ANSWER: unusual04
COMMAND: grep -v '^[!*]' | grep 'OTL'
ANSWER: unusual02
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
OR
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