3

Help regarding if condition in AIX

view full story
linux-howto

http://www.unix.com – Hi, My requirement is to check wheather some csv files have mandatory columns value as empty if empty log a error message or set a flag. The problem here is that the column number varies for different CSVs hence we can not hardcode $1 or $3 like this in the awk command hence we are reading a proprty file to get the mandatory fields & then setting it to a variable by prefixing $ to that column number & checking the empty value for that column. I am writing the following awk command : Code: for file in $run_count"_"*.csv; do  echo "file name "$file   (HowTos)