Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

Pass a shell variable to awk?

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

Pass a shell variable to awk? $x inside quotes is not shell. Use -v to pass it. Threshold check.
Pass a shell variable to awk? · Download PNG
Read card text

What this card says

What it is

$x inside quotes is not shell.

Why it matters

Use -v to pass it.

How / example

Threshold check.

awk -v lim=80 '$2>lim' usage.txt

See all AWS revision cards