Skip to content

siddharth-kp/Filetool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to Get the repo use git clone https://github.com/siddharth-kp/filetool.git

to generate the build use go install

to see usages run filetool --help

Commands available

scan → Scans a directory recursively and prints the number of lines in each .txt file.
freq → Counts word frequencies across all .txt files in a directory and shows the top 10 most frequent words.


USAGE

Scan

go to any directory and use filetool scan .

or use filetool scan "C:/Users/Siddharth Panda/Desktop/Desktop folder/testdata"

this will show output like -

PS C:\Users\Siddharth Panda\Desktop\Desktop folder\testdata> filetool scan .
abc1.txt: 50 lines
fol-1\abc2.txt: 50 lines
fol-1\fol2\abc3.txt: 50 lines
PS C:\Users\Siddharth Panda\Desktop\Desktop folder\testdata>

Freq count

go to any directory and use filetool freq .

or use filetool freq "C:/Users/Siddharth Panda/Desktop/Desktop folder/testdata"

this will show output like -

PS C:\Users\Siddharth Panda> filetool freq "C:/Users/Siddharth Panda/Desktop/Desktop folder/testdata"
Top 10 words:
the: 119
a: 58
to: 56
of: 45
he: 30
that: 28
it: 27
was: 25
on: 24
and: 23
PS C:\Users\Siddharth Panda>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages