Skip to content

Commit 5891f72

Browse files
authored
Merge pull request #1364 from cmu-delphi/roll-up-microdata-out-name
Patch survey microdata rollup names
2 parents 7ac53ca + 2bb5d11 commit 5891f72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

facebook/micro/monthly-archive.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ perform_rollup_and_post ()
1717
awk -F_ -vDIR="$1" 'BEGIN{print "cd " DIR} {key=$3 $4 $5; if (key!=last && last!="") {print record} last=key; record=$0} END{print record}' | \
1818
sed '/^cvid/ s/^/get /' >fetch.sftp
1919
sftp -b fetch.sftp -P 2222 [email protected]
20-
OUT=${MONTH/_/-}
20+
OUT=${MONTH/_/-}$2
2121
Rscript ../monthly-files.R ${MONTH%_*} ${R_MONTH} . >${OUT}.csv
2222
gzip ${OUT}.csv
2323
sftp -b <(echo -e "cd $1\nput ${OUT}.csv.gz") -P 2222 [email protected]
@@ -26,5 +26,5 @@ perform_rollup_and_post ()
2626
mv *.gz $1/
2727
}
2828

29-
perform_rollup_and_post "fb-public-results"
30-
perform_rollup_and_post "protected-race-ethnicity-data"
29+
perform_rollup_and_post "fb-public-results" ""
30+
perform_rollup_and_post "protected-race-ethnicity-data" "-race-ethnicity"

0 commit comments

Comments
 (0)