Skip to content

samuelyeewl/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Useful command-line tools

(c) Samuel Yee 2019

dircnt

Counts the number of files in a directory (non-recursively), optionally print filenames. Can be used to match file extension, prefix, or glob pattern. ~100x faster than ls or find.

Usage: dircnt dir [-nhd] [-e ext] [-s prefix] [-g glob] [-p num]

xorext

Counts the number of files with ext1 (optionally matching a filename pattern) that do not have a counterpart with ext2, optionally printing names.

Usage: xorext [dir1] ext1 [dir2] ext2 [-g glob] [-p num]

duext

Outputs the disk usage in a given directory, broken down by subdirectories and file types.

About

Personal command-line utilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages