awk - Unix, Linux Command---reference
|
The dynamic?width?and?prec?capabilities of the?ANSI?C?printf()?routines are supported. A*?in place of either the?width?or?prec?specifications causes their values to be taken from the argument list to?printf?or?sprintf(). To use a positional specifier with a dynamic width or precision,supply the?count$?after the?*?in the format string. For example,"%3$*2$.*1$s". Special File NamesWhen doing I/O redirection from either?print?or?printf?into a file,or via?getline?from a file,?gawk?recognizes certain special filenames internally. These filenames allow access to open file descriptors inherited from?gawk’s parent process (usually the shell). These file names may also be used on the command line to name data files. The filenames are:
print "You blew it!" > "/dev/stderr" whereas you would otherwise have to use print "You blew it!" | "cat 1>&2" (编辑:网站开发网_马鞍山站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |

