From cdadad2b6ed9f0880f9c800064993ae035cb5593 Mon Sep 17 00:00:00 2001 From: Carolyn Zech Date: Thu, 9 Jan 2025 11:19:12 -0500 Subject: [PATCH] break up tr commands with temp file --- scripts/std-analysis.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/std-analysis.sh b/scripts/std-analysis.sh index 87ac991cb00d..040442d66512 100755 --- a/scripts/std-analysis.sh +++ b/scripts/std-analysis.sh @@ -104,8 +104,10 @@ for f in $results/*overall.csv; do fname=$(basename $f) crate=${fname%_scan_overall.csv} echo -n "$crate," >> $summary - tr -d [:alpha:]_,; < $f | tr -s '\n' ',' \ - >> $summary + temp_file=$(mktemp) + tr -d '[:alpha:]_,;' < "$f" > $temp_file + tr -s '\n' ',' < $temp_file >> "$summary" + rm $temp_file echo "" >> $summary done