DOS command to show listing of Writable Files

Writing by on Tuesday, 24 of June , 2008 at 1:34 pm

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 search for all writable files.

The Linux equivalent to find the list of writable files would be something like. You can tweak the grep and the maxdepth to suit your needs.

find . -maxdepth 100 -type f -writable | grep .java

Leave a comment

Category: Java

No Comments

No comments yet.

Leave a comment

You must be logged in to post a comment.

Shivdev Kalambi's Blog

Shivdev Kalambi is a Software Development Manager, previously a Principal Software Engineer at ArcSight/HP. With over 16 years' experience in software development, he's worked on several technologies and played different roles and contributed to all phases of projects. Non-tech activies include Ping-pong, Rock Climbing and Yoga at PG, Golf, Skiing, Swimming & a beer enthusiast.