{"id":316,"date":"2019-10-21T21:25:11","date_gmt":"2019-10-21T20:25:11","guid":{"rendered":"http:\/\/slackware.pt\/?p=316"},"modified":"2019-10-21T21:26:53","modified_gmt":"2019-10-21T20:26:53","slug":"grep-em-ficheiros-com-certa-extensao","status":"publish","type":"post","link":"http:\/\/slackware.pt\/?p=316","title":{"rendered":"grep em ficheiros com certa extens\u00e3o"},"content":{"rendered":"<p>Para fazer <strong>grep<\/strong>, numa diretoria, em ficheiros com uma determinada extens\u00e3o, usa-se o comando seguinte:<\/p>\n<p><code>grep -r --include \\*.php --include \\*.html jquery *<\/code><\/p>\n<p>O comando anterior pesquisa numa \u00e1rvore de diretorias, a partir da diretoria atual, todos os ficheiros <strong>*.php<\/strong> e <strong>*.html<\/strong>, \u00e0 procura da string <strong>jquery<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Para fazer grep, numa diretoria, em ficheiros com uma determinada extens\u00e3o, usa-se o comando seguinte: grep -r &#8211;include \\*.php &#8211;include \\*.html jquery * O comando anterior pesquisa numa \u00e1rvore de diretorias, a partir da diretoria atual, todos os ficheiros *.php e *.html, \u00e0 procura da string jquery.<\/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":"http:\/\/slackware.pt\/index.php?rest_route=\/wp\/v2\/posts\/316"}],"collection":[{"href":"http:\/\/slackware.pt\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/slackware.pt\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/slackware.pt\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/slackware.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=316"}],"version-history":[{"count":4,"href":"http:\/\/slackware.pt\/index.php?rest_route=\/wp\/v2\/posts\/316\/revisions"}],"predecessor-version":[{"id":320,"href":"http:\/\/slackware.pt\/index.php?rest_route=\/wp\/v2\/posts\/316\/revisions\/320"}],"wp:attachment":[{"href":"http:\/\/slackware.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/slackware.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=316"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/slackware.pt\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}