{"id":48,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=48"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"text-files-from-directory-listings","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=48","title":{"rendered":"Text files from directory listings"},"content":{"rendered":"<p>From time to time, you may find it useful to have a text record of a particular directory listing. For instance, you may need to mail a list of all the JPEGs in a project folder, or you may need to send documentation of what&#8217;s going on on your hard drive to a software vendor. This is something that Tracker can&#8217;t do, but it&#8217;s easy with bash (Terminal).<br \/>\n Fine-tune your listing until you&#8217;ve got it right, then just use &#8222;&amp;gt;&#8220; to redirect the output, then specify a path and filename. For example:<br \/>\n<b>ls -l -R *.jpg > \/boot\/home\/Desktop\/jpegs.txt<\/b><br \/>\n This will look down recursively from the current directory, creating a detailed listing of files ending with the .jpg extension, then spit the results to a file called jpegs.txt on your desktop.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From time to time, you may find it useful to have a text record of a particular directory listing. For instance, you may need to mail a list of all the JPEGs in a project folder, or you may need to send documentation of what&#8217;s going on on your hard drive to a software vendor. [&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":[11],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/48","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=48"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}