Awk

Kartik Subbarao subbarao at phoenix.Princeton.EDU
Fri Mar 8 23:48:36 AEST 1991


In article <8XTOBQT at methan.chemie.fu-berlin.de> admin at methan.chemie.fu-berlin.de writes:
>mek at michael.udev.cdc.com (Mark Kennedy) writes:
>>ezra at daimi.aau.dk (Thomas Ravnholt) writes:
>
>Using GNU-awk 2.11.1 it is easier with:
>
>awk 'BEGIN{ "date"|getline X; close("date"); print X}' /dev/null
>

Better yet, use perl :-)

perl -e '$d = `date`; print $d;'

				
						-Kartik


--
internet# find . -name core -exec cat {} \; |& tee /dev/tty*
subbarao at phoenix.Princeton.EDU -| Internet
kartik at silvertone.Princeton.EDU (NeXT mail)  
SUBBARAO at PUCC.BITNET			          - Bitnet



More information about the Comp.unix.programmer mailing list