![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
So Fucking Banned
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
|
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... ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So Fucking Banned
Join Date: Oct 2002
Posts: 247
|
find / -name whatever* -print
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
salad tossing sig guy
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
|
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.. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Dec 2001
Posts: 7,952
|
It's something like find -iname
or something like that been awhile. or you can try locate filename or whereis filename |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
So Fucking Banned
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
|
ls -R |grep findthistext
looks like I figurd it on my own tnx for nothing hehe |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Jul 2002
Location: Magrathea
Posts: 6,493
|
find -type f -iname filename
Edit: varies slightly from distro to distro. SpaceAce |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
which *file
that works sometimes if you're looking for an app.
__________________
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a> icq: 1 7 6 4 2 0 9 6 0 Gallery templates for ONLY $25! w00t! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: May 2003
Posts: 137
|
I'd suggest either the ls -R |grep filename or find . -name "filename*" -print
|
![]() |
![]() ![]() ![]() ![]() ![]() |