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

Ravi Sir's Cards › AWS

AWS Cloud

Pass a shell variable to awk?

This interview card answers: 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? $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