it's not about using variables defined in awk with awk, but using variables defined in another software which makes use of awk to do string treatment, say within gnuplot
I need to do something like this, use awk to filter out data within a specific range whose limit is externally defined, say
plot "< awk ' ($1<s1) || ($1>s2) { print $1, $3 } ' fort.47" u 1:2 w l
here s1, s2 are variables defined in gnuplot to specify lower and upper limit, plot is a command in gnuplot.
The above does not achieve my goal, how can I possibly improve it? Thanks,
I need to do something like this, use awk to filter out data within a specific range whose limit is externally defined, say
plot "< awk ' ($1<s1) || ($1>s2) { print $1, $3 } ' fort.47" u 1:2 w l
here s1, s2 are variables defined in gnuplot to specify lower and upper limit, plot is a command in gnuplot.
The above does not achieve my goal, how can I possibly improve it? Thanks,