Skip to content

Commit

Permalink
* ignore ampscz_missing ampscz_missing_spec
Browse files Browse the repository at this point in the history
* include \" and \, in search pattern
  • Loading branch information
tashrifbillah committed May 21, 2024
1 parent 6a20a20 commit 5d362d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nda-transform/generate_nda_dict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ for file in files:
for c in df.columns:
if c in 'subjectkey src_subject_id sex interview_date interview_age':
if c in 'subjectkey src_subject_id sex interview_date interview_age ampscz_missing ampscz_missing_spec':
continue
if c not in vars:
Expand All @@ -41,6 +41,8 @@ DICT=${OUT//txt/csv}
rm $DICT
for v in $(cat $OUT)
do
grep -h $v *_definitions.csv >> $DICT
echo $v
grep -h -w "\"${v}\"," *_definitions.csv >> $DICT
grep -h -w "${v}," *_definitions.csv >> $DICT
done

0 comments on commit 5d362d9

Please sign in to comment.