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

# by permission
find -perm 777

# find by size
find -size +1G
  • toastal@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    She’s done such a good job with this channel. I understand most of the content, but I always pick up a nugget of new as well as being able to better explain after a topic she ELI5’d