{"id":29,"date":"2008-06-24T13:34:09","date_gmt":"2008-06-24T20:34:09","guid":{"rendered":"http:\/\/shivdev.com\/blog\/2008\/06\/24\/dos-show-listing-of-writable-files\/"},"modified":"2012-10-22T20:54:00","modified_gmt":"2012-10-22T20:54:00","slug":"dos-show-listing-of-writable-files","status":"publish","type":"post","link":"http:\/\/shivdev.com\/blog\/2008\/06\/24\/dos-show-listing-of-writable-files\/","title":{"rendered":"DOS command to show listing of Writable Files"},"content":{"rendered":"<p>Sometimes developers create new files and forget to add them into their VCS. Later they want to see what files are WRITABLE (not read only) that have been added (newly created) so they can be added to the version control system.<\/p>\n<blockquote><p>dir \/a:-R \/s \/b *.java<\/p><\/blockquote>\n<p>The *.java above can be replaced with *.* to search for all writable files.<\/p>\n<p>The Linux equivalent to find the list of writable files would be something like. You can tweak the <strong>grep <\/strong>and the <strong>maxdepth <\/strong>to suit your needs.<\/p>\n<blockquote><p> find . -maxdepth 100 -type f -writable | grep .java<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes developers create new files and forget to add them into their VCS. Later they want to see what files are WRITABLE (not read only) that have been added (newly created) so they can be added to the version control system. dir \/a:-R \/s \/b *.java The *.java above can be replaced with *.* to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/29"}],"collection":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":3,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":566,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions\/566"}],"wp:attachment":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}