The Find Command in BASH

preview_player
Показать описание
How to FIND files from the command line.
Рекомендации по теме
Комментарии
Автор

thank you so much for the video. I am trying to write a script using lynx and notify send to notify me if there is a new job posted on DICE. I was thinking it would help if you could explain the ebay script that you wrote. Appreciate you sharing the videos.

ekam
Автор

@tuxsbro: Thank you so much! I was unaware of this feature. It's great! All these years I've been piping my find output into a while loop to do this. Thanks again.

DigitalMetal
Автор

IMO this command combined with -exec really unleashes the power of the command line. > I can do anything to any file, but add in the find command and I can do anything to any files that I specify down to a T

tuxsbro
Автор

@tuxsbro

Sry but what does "down to a T" means :-/ ?

tokigt
Автор

If you put 2> in the end and direct it to ie /dev/null all error messages will be directed there....
" find / -iname "*.txt" 1> /dev/null "
with 1> all the "correct outputs will be sent to dev/null
Maybe is faster because then the computer realy need to check in "sudo folders" :)

tokigt
Автор

@tokigt2142 in this case it means exactly what I am looking for

also, wtf how did I double post?

tuxsbro
Автор

sudo find / -name "file.txt" 2> /dev/null
2> to direct errors
/dev/null to send them into a black hole :)

Freegreentealeaf
Автор

@metalx1000 ah you think thats bad I didnt know about -iname so I would search for like: "*y*ile.txt" lol

tuxsbro
Автор

Maybe is faster because then the computer DOSENT really needs to check in "sudo folders" :)

Edit on that one ;)

tokigt