Skip to content

Commit

Permalink
Make a single gawk call. NOAA-EMC#1515
Browse files Browse the repository at this point in the history
This addresses a shellcheck complaint.
  • Loading branch information
DavidHuber-NOAA committed May 2, 2023
1 parent bb95fd9 commit 3160036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ush/radmon_diag_ck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ echo "--> radmon_diag_ck.sh"
uz_file_size=$(du -b "${ges}" | gawk '{print $1}')

if [[ ${uz_file_size} -eq 0 ]]; then
sat=$(echo "${ges}" | gawk -F"diag_" '{print $2}' | gawk -F"_ges" '{print $1}')
sat=$(echo "${ges}" | gawk -F"diag_" -F"_ges" '{print $1}')

zero_len_diag="${zero_len_diag} ${sat}"
fi
Expand Down

0 comments on commit 3160036

Please sign in to comment.