{"id":164,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=164"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"command-line-queries-include-the-trash","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=164","title":{"rendered":"Command-line queries include the Trash"},"content":{"rendered":"<p>If you run BeOS queries from the command line, be aware that they will include the Trash. The GUI query applet does not do this unless you specifically tell it to, but it can be a problem from the command line, and there&#8217;s no way to turn it off. You may want to filter your query results to make sure you&#8217;re not working with Trashed items, like this: <code> query \"((name==\"filename\")&amp;&amp;(BEOS:TYPE==\"text\/plain\"))\" | sed \/Trash\/d <\/code> See <a href=\"\/chunga.php?ID=176\">Queries from the Terminal<\/a> for basics.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you run BeOS queries from the command line, be aware that they will include the Trash. The GUI query applet does not do this unless you specifically tell it to, but it can be a problem from the command line, and there&#8217;s no way to turn it off. You may want to filter your [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[15],"class_list":["post-164","post","type-post","status-publish","format-standard","hentry","tag-warnings"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=164"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/164\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}