
{"id":8283,"date":"2013-04-01T18:50:03","date_gmt":"2013-04-01T18:50:03","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=8283"},"modified":"2013-04-01T18:50:03","modified_gmt":"2013-04-01T18:50:03","slug":"nl-i-line-number-increment-at-each-line","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2013\/04\/01\/nl-i-line-number-increment-at-each-line\/","title":{"rendered":"nl   [ -i ]   line number increment at each line"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n$cat comma.pl\nuse strict;\nuse warnings;\n\nfor (qw\/ 179550 45960 890458 -12345678 1000000000000\/) {\n  (my $n = $_) =~ s\/(d+?)(?=(d{3})+b)\/$1,\/g;\n  print \"$nn\";\n}\n\n$nl comma.pl\n     1\tuse strict;\n     2\tuse warnings;\n\n     3\tfor (qw\/ 179550 45960 890458 -12345678 1000000000000\/) {\n     4\t  (my $n = $_) =~ s\/(d+?)(?=(d{3})+b)\/$1,\/g;\n     5\t  print \"$nn\";\n     6\t}\n\n$nl -i2 comma.pl\n     1\tuse strict;\n     3\tuse warnings;\n\n     5\tfor (qw\/ 179550 45960 890458 -12345678 1000000000000\/) {\n     7\t  (my $n = $_) =~ s\/(d+?)(?=(d{3})+b)\/$1,\/g;\n     9\t  print \"$nn\";\n    11\t}\n\n$nl -i3 comma.pl\n     1\tuse strict;\n     4\tuse warnings;\n\n     7\tfor (qw\/ 179550 45960 890458 -12345678 1000000000000\/) {\n    10\t  (my $n = $_) =~ s\/(d+?)(?=(d{3})+b)\/$1,\/g;\n    13\t  print \"$nn\";\n    16\t}\n\n$\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $cat comma.pl use strict; use warnings; for (qw\/ 179550 45960 890458 -12345678 1000000000000\/) { (my $n = $_) =~ s\/(d+?)(?=(d{3})+b)\/$1,\/g; print &#8220;$nn&#8221;; } $nl comma.pl 1 use strict; 2 use warnings; 3 for (qw\/ 179550 45960 890458 -12345678 1000000000000\/) { 4 (my $n = $_) =~ s\/(d+?)(?=(d{3})+b)\/$1,\/g; 5 print &#8220;$nn&#8221;; 6 } $nl &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2013\/04\/01\/nl-i-line-number-increment-at-each-line\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;nl   [ -i ]   line number increment at each line&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8283"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=8283"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8283\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=8283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=8283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=8283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}