Quote:
Originally Posted by
hongwei
awk -F '\[|\||:|,' '{print $4, $9, $11}'
i forgot to mention that the log file contains many data:
ex.
10 Apr 2009 0:16:16 [6|1|3|2] * name: Tuna Belly Format: Well done, Price: 999 only
data data data data etc etc
data data data data etc etc
data data data data etc etc
10 Apr 2009 0:16:16 [4|0|3|2] * name: Roast Beef Format: Raw, Price: 55 c
data data data data etc etc
data data data data etc etc
data data data data etc etc
10 Apr 2009 0:16:16 [5|5|4|2] * name: Pasta Format: Dry, Price: 88.43 only
data data data data etc etc
data data data data etc etc
data data data data etc etc
will the script -> awk -F '\[|\||:|,' '{print $4, $9, $11}' still be able to identity only desired line?
thanks