
{"id":5841,"date":"2011-09-14T20:09:29","date_gmt":"2011-09-14T20:09:29","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=5841"},"modified":"2011-09-14T20:09:29","modified_gmt":"2011-09-14T20:09:29","slug":"cat-grep-wc-and-pipe-operator","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2011\/09\/14\/cat-grep-wc-and-pipe-operator\/","title":{"rendered":"cat + grep + wc and pipe operator"},"content":{"rendered":"<h5><u> A UNIX Command <\/u><\/h5>\n<pre>\n$ls\n1984  2001  2004  2007\t2010\t\t TED-talks-grouped-by-year-in-high-quality.metalink\n1990  2002  2005  2008\t2011\t\t ted_urls\n1998  2003  2006  2009\tted_download.sh\n$cat TED-talks-grouped-by-year-in-high-quality.metalink | grep -w url | wc -l\n980\n$\n\n<\/pre>\n<p><\/p>\n<h5><u> UNIX Explanation <\/u><\/h5>\n<pre>\nThis command finds out the  number of lines with the word\n\"url\" in the file TED*.\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A UNIX Command $ls 1984 2001 2004 2007 2010 TED-talks-grouped-by-year-in-high-quality.metalink 1990 2002 2005 2008 2011 ted_urls 1998 2003 2006 2009 ted_download.sh $cat TED-talks-grouped-by-year-in-high-quality.metalink | grep -w url | wc -l 980 $ UNIX Explanation This command finds out the number of lines with the word &#8220;url&#8221; in the file TED*.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[521,863,1271,1419],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/5841"}],"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=5841"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/5841\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=5841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=5841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=5841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}