ls
man page, but I only came across it a couple of days ago.Say you have a directory with tons of files in it mostly with a single extension and you want to see what else is in there. Sure, you can use grep, but you can also use
ls
's inbuilt flat --hide
.
> ls -l
arg.txt
blarg.txt
foo.txt
...
interesting.sh
... # and a ton more *.txt files
zlargyblorg.txt
> ls -l --hide=*.txt
interesting.sh
hidden.csv
Isn't that useful?
No comments:
Post a Comment