Freedom to Write
Monday 14 February 2011
awk inside perl
what all characters to escape while executing awk script in perl:
my $cmd = "awk -F\"^A\" '\$1==\"r\" && \$5 == $time {sum+=\$16} END{printf(\"\%f\",sum)}' ma.959.200.$time.*.done" ;
my $bdl = exec $cmd;
print "$bdl";
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Tweets by @sriramperumalla
No comments:
Post a Comment