1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-30 10:57:12 -07:00

update exts so it actually works properly

This commit is contained in:
Connor Olding 2024-05-17 20:06:30 -07:00
parent 675c7b3c87
commit 7c87795057

View File

@ -165,7 +165,7 @@ counts() ### @- count files in the current directory, including files found recu
{ find . | wc -l "$@"; }
exts() ### @- count and sort file extensions in the current directory, including files found recursively.
{ find -type f | grep -o '\\.[^/.]*$' | sort | uniq -c | sort -n "$@"; }
{ find -type f | sed -e 's@.*/@@' -e 's@.*\.@@' | tr A-Z a-z | scount; }
nocom() ### @- strip single-line C-like and shell-like comments.
{ grep -Ev --line-buffered --color=never "^[[:space:]]*(//|#)" "$@"; }