
{"id":17036,"date":"2018-05-04T19:32:58","date_gmt":"2018-05-04T19:32:58","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=17036"},"modified":"2018-05-04T19:32:58","modified_gmt":"2018-05-04T19:32:58","slug":"search-for-a-pattern-at-the-beginning-of-a-line-using-grep","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2018\/05\/04\/search-for-a-pattern-at-the-beginning-of-a-line-using-grep\/","title":{"rendered":"Search for a pattern at the beginning of a line using grep"},"content":{"rendered":"<pre>\n$ps -e \"kworker$\"\nerror: unknown sort specifier\n\nUsage:\n ps [options]\n\n Try 'ps --help '\n  or 'ps --help <s>'\n for additional help text.\n\nFor more details see ps(1).\n$ps -ef | grep \"^daemon\"\ndaemon     639     1  0 May04 ?        00:00:00 \/usr\/sbin\/atd -f\n$ps -ef | grep \"^rtkit\"\nrtkit     1245     1  0 May04 ?        00:00:00 \/usr\/lib\/rtkit\/rtkit-daemon\n$ps -ef | grep \"^systemd+\"\nsystemd+   522     1  0 May04 ?        00:00:00 \/lib\/systemd\/systemd-timesyncd\n$\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$ps -e &#8220;kworker$&#8221; error: unknown sort specifier Usage: ps [options] Try &#8216;ps &#8211;help &#8216; or &#8216;ps &#8211;help &#8216; for additional help text. For more details see ps(1). $ps -ef | grep &#8220;^daemon&#8221; daemon 639 1 0 May04 ? 00:00:00 \/usr\/sbin\/atd -f $ps -ef | grep &#8220;^rtkit&#8221; rtkit 1245 1 0 May04 ? 00:00:00 \/usr\/lib\/rtkit\/rtkit-daemon $ps &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2018\/05\/04\/search-for-a-pattern-at-the-beginning-of-a-line-using-grep\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Search for a pattern at the beginning of a line using grep&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15,83],"tags":[863,1361],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/17036"}],"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=17036"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/17036\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=17036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=17036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=17036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}