awk - Unix, Linux Command---reference
发布时间:2021-01-24 20:35:25 所属栏目:Linux 来源:网络整理
导读:http://www.tutorialspoint.com/unix_commands/awk.htm gawk - pattern scanning and processing language gawk ?[? POSIX ?or? GNU ?style options ]? -f ? program-file ?[? -- ?] file ...? gawk ?[? POSIX ?or? GNU ?style options ] [? -- ?]? program-
<table class="src" border="1" cellspacing="0" cellpadding="5"> | Description | datespec) datespec?into a time stamp of the same form as returned by?systime(). The?datespec?is a string of the form?YYYY MM DD HH MM SS[ DST]. The contents of the string are six or seven numbers representing respectively the full year including century,the month from 1 to 12,the day of the month from 1 to 31,the hour of the day from 0 to 23,the minute from 0 to 59,and the second from 0 to 60,and an optional daylight saving flag. The values of these numbers need not be within the ranges specified; for example,an hour of -1 means 1 hour before midnight. The origin-zero Gregorian calendar is assumed,with year 0 preceding year 1 and year -1 preceding year 0. The time is assumed to be in the local timezone. If the daylight saving flag is positive,the time is assumed to be daylight saving time; if zero,the time is assumed to be standard time; and if negative (the default),?mktime()?attempts to determine whether daylight saving time is in effect for the specified time. Ifdatespec?does not contain enough elements or if the resulting time is out of range,?mktime()?returns -1.format?[,?timestamp]]) timestamp?according to the specification in?format.?Thetimestamp?should be of the same form as returned bysystime(). If?timestamp?is missing,the current time of day is used. If?format?is missing,a default format equivalent to the output of?date(1) is used. See the specification for thestrftime()?function in?ANSI?C for the format conversions that are guaranteed to be available. A public-domain version ofstrftime(3) and a man page for it come with?gawk; if that version was used to build?gawk,then all of the conversions described in that man page are available to?gawk.
---|
Starting with version 3.1 of?gawk,the following bit manipulation functions are available. They work by converting double-precision floating point values to?unsigned longintegers,doing the operation,and then converting the result back to floating point. The functions are:
Description |
---|
(编辑:晋中站长网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!