Kommandosubstitution

Beispiel:

awk 'BEGIN {print "'"$(date)"'"}'

oder

 awk 'BEGIN {print "'"`date`"'"}'

Ausgabe, z.B.:

Mi Nov 16 09:27:55 CET 2005

Zugriff auf Shellvariablen und -parameter

Beispiel:

awk 'BEGIN {print "'$SECONDS'"}'

Ausgabe, z.B.:

1611
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.