I have a nawk command as shown.
Can anyone explain what this command is suppose to do.
set sampFile = $cur_dir/${qtr}.SAMP
nawk -F "," '{OFS=","; if (($4 == "0000" || $4 == "00000000")) {print $0} }' $samp_input_file >! $sampFile
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Given a CSV file pointed to by the variable
$samp_input_filethis command will print the lines where the 4th field is either0000or00000000and store the output in the file pointed to by$sampFile.