How can you use a string as input of awk? Usually awk takes as input the path of the file that you want to process.

Here there is a very simple solution to give to process a string with awk without the necessity of store that string into a file:

echo “string that you want to process” | awk …. (all the awk parameters that you want, as usual)

In this way awk doesn’t need a path file, it will process the string printed by echo