Hi all,
I'm a bit lost in this topic, can someone advice please.
I want to read some lines from a file that have a specific value in field number 3:
my @rows = `cat file.csv | awk -F';' '{if ($3==1) print $0}'`; my $lines= join("\n",@rows ); printlog("string: $lines");
instead of having the lines filtered, $lines is empty. when I execute the command on solaris it work...
any idea??
thank you in advance.
In reply to get value from a awk system command by filipebean
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |