mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
update exts
so it actually works properly
This commit is contained in:
parent
675c7b3c87
commit
7c87795057
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ counts() ### @- count files in the current directory, including files found recu
|
||||||
{ find . | wc -l "$@"; }
|
{ find . | wc -l "$@"; }
|
||||||
|
|
||||||
exts() ### @- count and sort file extensions in the current directory, including files found recursively.
|
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.
|
nocom() ### @- strip single-line C-like and shell-like comments.
|
||||||
{ grep -Ev --line-buffered --color=never "^[[:space:]]*(//|#)" "$@"; }
|
{ grep -Ev --line-buffered --color=never "^[[:space:]]*(//|#)" "$@"; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue