GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   I need some UNIX help -- how to search subdirectories for files? (https://gfy.com/showthread.php?t=138866)

TheFLY 05-31-2003 11:50 PM

I need some UNIX help -- how to search subdirectories for files?
 
can't I do something like

ls findthisfile.blah -R

i't not working... :(

russian_agent_69 05-31-2003 11:51 PM

find / -name whatever* -print

mrthumbs 05-31-2003 11:51 PM

there's a better way but

find / |grep filename.txt

does the job or find ./ |grep filename.txt
if you want to search from a specific dir up..

4Pics 05-31-2003 11:51 PM

It's something like find -iname

or something like that been awhile.

or you can try

locate filename
or
whereis filename

TheFLY 05-31-2003 11:53 PM

ls -R |grep findthistext

looks like I figurd it on my own tnx for nothing hehe

SpaceAce 06-01-2003 12:06 AM

find -type f -iname filename

Edit: varies slightly from distro to distro.

SpaceAce

iroc409 06-01-2003 12:28 AM

which *file

that works sometimes if you're looking for an app.

jas0n 06-01-2003 01:09 AM

I'd suggest either the ls -R |grep filename or find . -name "filename*" -print


All times are GMT -7. The time now is 12:36 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123