{"id":400,"date":"2009-03-27T01:28:54","date_gmt":"2009-03-26T22:28:54","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=400"},"modified":"2009-04-04T23:23:55","modified_gmt":"2009-04-04T20:23:55","slug":"commandlinefucom-random-entry-parser","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2009\/03\/27\/commandlinefucom-random-entry-parser\/","title":{"rendered":"commandlinefu.com random entry parser"},"content":{"rendered":"<p>I&#8217;ve written a small perl script to parse random entries from the extremely usefull <a href=\"http:\/\/commandlinefu.com\">commandlinefu.com<\/a> website. Quoting from their site:<\/p>\n<blockquote><p>Command-Line-Fu is the place to record those command-line gems that you return to again and again.\n<\/p><\/blockquote>\n<p>The script code is very &#8220;clean&#8221;. I can almost say that it&#8217;s written in a very python-ish way.<br \/>\nSample output:<code>%.\/cfu.pl<br \/>\nCMD: for (( i = 0; i &lt; 100; i++ )); do echo \"$i\"; done<br \/>\nURL=http:\/\/www.commandlinefu.com\/commands\/view\/735\/perform-a-c-style-loop-in-bash.  Title=Perform a C-style loop in Bash.<br \/>\nDescription: Print 0 through 99, each on a separate line.<br \/>\n%.\/cfu.pl<br \/>\nCMD: rsync -av -e ssh user@host:\/path\/to\/file.txt .<br \/>\nURL=http:\/\/www.commandlinefu.com\/commands\/view\/20\/synchronise-a-file-from-a-remote-server  Title=Synchronise a file from a remote server<br \/>\nDescription: You will be prompted for a password unless you have your public keys set-up.<\/code><\/p>\n<p>You can get it from here: <a href=\"http:\/\/void.gr\/kargig\/blog\/wp-content\/cfu.pl\">commandlinefu.com random entry parser perl script<\/a><\/p>\n<p>As far as I&#8217;ve tested, it works out of the box on default perl installations of <a href=\"http:\/\/debian.org\">Debian<\/a>, <a href=\"http:\/\/gentoo.org\">Gentoo<\/a> and <a href=\"http:\/\/www.apple.com\/macosx\/\">Mac OS X<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve written a small perl script to parse random entries from the extremely usefull commandlinefu.com website. Quoting from their site: Command-Line-Fu is the place to record those command-line gems that you return to again and again. The script code is very &#8220;clean&#8221;. I can almost say that it&#8217;s written in a very python-ish way. Sample [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[12,5,3,13],"tags":[46,33,601,602,47,50,48,49],"class_list":["post-400","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-internet","category-linux","category-macosx","tag-commandlinefu","tag-debian","tag-gentoo","tag-macosx","tag-oneliner","tag-parse","tag-perl","tag-script"],"aioseo_notices":[],"views":12501,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=400"}],"version-history":[{"count":15,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/400\/revisions"}],"predecessor-version":[{"id":439,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/400\/revisions\/439"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}