Skip to content

Instantly share code, notes, and snippets.

@xiongchiamiov
Last active July 12, 2016 01:01
Show Gist options
  • Save xiongchiamiov/7bae6a289968ec5293bd192b7f9d1e91 to your computer and use it in GitHub Desktop.
Save xiongchiamiov/7bae6a289968ec5293bd192b7f9d1e91 to your computer and use it in GitHub Desktop.
A quick shell predecessor to https://github.com/xiongchiamiov/ncfc
function wchs {
for i in "$@"; do
count=$(find "$i" | wc -l)
echo "$count\t$i"
done
}
function wchs-sort {
wchs "$@" | sort -nr
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment