Last change
on this file since 32963 was 32963, checked in by davidb, 5 years ago |
Added text and some refinement of scripts to make things easier to run
|
-
Property svn:executable
set to
*
|
File size:
517 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | input=${1:-'hathi_brief_20190301.txt'}
|
---|
4 | output=${2:-'hathi_pd_MU_Not-Google_20190301.txt'}
|
---|
5 |
|
---|
6 | echo ""
|
---|
7 | echo "===="
|
---|
8 | echo " Script to filter down the extracted Music Format data entries that at"
|
---|
9 | echo " publicly available: public domain and NOT scanned by Google"
|
---|
10 | echo "===="
|
---|
11 |
|
---|
12 | echo ""
|
---|
13 | echo "Reading in : $input"
|
---|
14 | echo "Writing out : $output"
|
---|
15 | echo ""
|
---|
16 |
|
---|
17 | echo "Processing ..."
|
---|
18 |
|
---|
19 | cat "$input" \
|
---|
20 | | awk -F '\t' '$2 == "pd" && $3 == "MU" && $4 != "google" { print $0 }' \
|
---|
21 | > "$output"
|
---|
22 |
|
---|
23 | echo "... Done"
|
---|
24 | echo ""
|
---|
25 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.