{"id":3537,"date":"2014-09-09T11:50:28","date_gmt":"2014-09-09T03:50:28","guid":{"rendered":"http:\/\/rmohan.com\/?p=3537"},"modified":"2014-09-10T10:33:43","modified_gmt":"2014-09-10T02:33:43","slug":"awk-built-in-variables","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3537","title":{"rendered":"awk built-in variables"},"content":{"rendered":"<table border=\"0\" cellspacing=\"1\" cellpadding=\"4\" bgcolor=\"#666666\">\n<tbody>\n<tr>\n<td bgcolor=\"#cccccc\"><strong>Properties<\/strong><\/td>\n<td bgcolor=\"#cccccc\"><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">$0<\/td>\n<td bgcolor=\"#ffffff\">The current record (as a single variable)<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">$1~$n<\/td>\n<td bgcolor=\"#ffffff\">N-th field of the current record, separated by FS between fields<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">FS<\/td>\n<td bgcolor=\"#ffffff\">Enter the default field separator is a space<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">NF<\/td>\n<td bgcolor=\"#ffffff\">The number of fields in the current record is the number of columns<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">NO<\/td>\n<td bgcolor=\"#ffffff\">The number of records have been read out, is the line number, starting at 1<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">RS<\/td>\n<td bgcolor=\"#ffffff\">He recorded input delimiter defaults to a newline<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">OFS<\/td>\n<td bgcolor=\"#ffffff\">The default output field separator is a space<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">ORS<\/td>\n<td bgcolor=\"#ffffff\">Output record separator, by default a newline<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">ARGC<\/td>\n<td bgcolor=\"#ffffff\">The number of command line arguments<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">ARGV<\/td>\n<td bgcolor=\"#ffffff\">Command line parameter array<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">FILENAME<\/td>\n<td bgcolor=\"#ffffff\">Enter the file name of the current<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">IGNORECASE<\/td>\n<td bgcolor=\"#ffffff\">If true, the case-insensitive match<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">ARGIND<\/td>\n<td bgcolor=\"#ffffff\">ARGV identifier is currently processing files<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">CONVFMT<\/td>\n<td bgcolor=\"#ffffff\">Digital conversion formats% .6g<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">ENVIRON<\/td>\n<td bgcolor=\"#ffffff\">UNIX Environment Variables<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">Errno<\/td>\n<td bgcolor=\"#ffffff\">UNIX system error message<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">FIELDWIDTHS<\/td>\n<td bgcolor=\"#ffffff\">Enter keywords separated by the width of the string field<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">FNR<\/td>\n<td bgcolor=\"#ffffff\">The current number of records<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">OFMT<\/td>\n<td bgcolor=\"#ffffff\">Digital output format% .6g<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">RSTART<\/td>\n<td bgcolor=\"#ffffff\">Was first matched string matching function<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">RLENGTH<\/td>\n<td bgcolor=\"#ffffff\">Is the length of the matched string matching function<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">SUBSEP<\/td>\n<td bgcolor=\"#ffffff\">\\034<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p> Properties Description $0 The current record (as a single variable) $1~$n N-th field of the current record, separated by FS between fields FS Enter the default field separator is a space NF The number of fields in the current record is the number of columns NO The number of records have been read out, [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3537"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3537"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3537\/revisions"}],"predecessor-version":[{"id":3538,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3537\/revisions\/3538"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}