Search Results

Search: Posts Made By: codestar1
8,117
Posted By codestar1
I tried that exact code. The issue is that...
I tried that exact code. The issue is that something is wrong with the use of "${file_delimiter}". when I echo the statement and exit the script, the value comes as an empty string. I'm not sure why....
8,117
Posted By codestar1
cat ${landing_dir}/${lfile}|awk -F...
cat ${landing_dir}/${lfile}|awk -F "${file_delimiter}" -v bad=${bad_file} -v good=${rootDir}/landing/Validation_EDITED/new_${lfile} -v fc=${file_field_count} '{if(NF!=fc) {print NR,$0 > bad;} else...
8,117
Posted By codestar1
${lfile} is the file being parsed. Do I need to...
${lfile} is the file being parsed. Do I need to pass that as a variable as well?

I keep getting this error:

awk: (FILENAME=RESPONSE_2012.txt FNR=1) fatal: expression for `>' redirection has...
8,117
Posted By codestar1
Thanks shamrock... I am still having an issue ...
Thanks shamrock... I am still having an issue

I Changed code to awk -F ${file_delimiter} '{if(NF!=${file_field_count}) print NR, $0 > $bad_file; else
...
8,117
Posted By codestar1
Use awk to pipe output from one file into multiple files
Hi All. Thanks for your help in advance.

I have a requirement to examine the number of delimiters in each record of a file. If the record has the expected number of delimiters it should be passed...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 07:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy