Skip to content

someshc8i/Traverce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traverce

Tool which recursively traverses a directory and finds all the files with names matching the given wiildcard.

Getting Started

Install

sudo pip install traverce

Use

traverce <path of directory> '<wildcard pattern>'

for example traverce my_folder '[a-z]*.py$' will find all the files in my_folder with .py extension and output their exact path with the sizes in Bytes on command line or in a file(Optional)

+----------------+----------------------------------------------------------------------------------+----------------+
| Matched String |                                       File                                       | Size(In Bytes) |
+----------------+----------------------------------------------------------------------------------+----------------+
|       py       |                       /my_folder/.../manage.py                                   |      807       |
|       py       |                      /my_folder/.../tokenizer.py                                 |      836       |
|       py       |                      /my_folder/.../apps.py                                      |       94       |
|       py       |                                 ...                                              |       ...      |

Options

You can output to a file via -o optional argument. For example -o output.txt will print the result in the output.txt

Aim

Aim is to make a more robust tool with a number of functionalities such as extracting patterns from file, replacing patterns and many more. Any suggestions/contributions are appreciated.

Author

  • Somesh Chaturvedi

License

This project is licensed under the MIT.

About

Tool which matches pattern in a directory recursively

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages