Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 665 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 665 Bytes

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.