awk operating with shell vars only

Hi all

How do I use awk such that it does not require an input file? I have a situation where I need to process some shell vars within awk (passed into awk with "-v VAR1=$VALUE1, VAR2=$VALUE2" etc), but that processing does not require/use an input file.

Any guidance?

TIA
JG

echo and pipe them into awk maybe. Depending on what you want to do, maybe sed or tr might be more handy.

awk -v VAR1=$VALUE1 -v VAR2=$VALUE2 'BEGIN { ... do stuff with VAR1/VAR2}' < /dev/null