- cross-posted to:
- linux@programming.dev
- linux@lemmy.ml
- cross-posted to:
- linux@programming.dev
- linux@lemmy.ml
TL;DW
# find with grep
# + concatinates results and runs the command once, faster
find . -name "*.txt" -exec grep -l "somename" '{}' '+'
# run a command for each result individually
find . -name "*.txt" -exec basename '{}' \';' | column
# case insensitive
find -iname "SoMeNaMe.TxT
# file or dir
find -type f
find -type d
# define file owner
find -user Bob
# define file group
find -group wheel
# by permission
find -perm 777
# find by size
find -size +1G
You must log in or # to comment.
She’s available on the Fediverse at https://tinkerbetter.tube/c/veronicaexplains/videos
Definitely worth following from your favorite Fediverse app.
Veronica’s videos are awesome.
For most cases I use fzf and rg. Its super fast.
Here is an alternative Piped link(s):
https://piped.video/watch?v=FvEoGHFKsKA
Piped is a privacy-respecting open-source alternative frontend to YouTube.
I’m open-source; check me out at GitHub.