using


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers using
# 1  
Old 09-24-2008
using

I want to search in a directory using the FIND command to look up for these files ( cookingTips.html ,footballPicks.txt and goodBooks.txt ) instead of typing the whole names of these files, there is a common feauture of each one. It is that for all files they containt the substring ( oo ). So, I am trying to using the FIND comand to look for the substring oo in my directory. Anyone has any idea ?
# 2  
Old 09-24-2008
Yep,
But this looks like home work...
Present it differently and you might find some help (dont expect other to do the work for you...), like I am trying to... Here is my code so far : <your code...> but its not that successfull, what am I doing wrong.. etc...
# 3  
Old 09-24-2008
Quote:
Originally Posted by aama100
I want to search in a directory using the FIND command to look up for these files ( cookingTips.html ,footballPicks.txt and goodBooks.txt ) instead of typing the whole names of these files, there is a common feauture of each one. It is that for all files they containt the substring ( oo ). So, I am trying to using the FIND comand to look for the substring oo in my directory. Anyone has any idea ?
I suspect it is some school work. Does FIND refers to the windows 'FIND' or the unix 'find' ?

Also, this thread looks like a spinoff from the older thread https://www.unix.com/unix-dummies-que...y-toolman.html
# 4  
Old 09-24-2008
Yes this does look like homework, but since I have such a simple answer I will give you the benefit of the doubt...

You could try the simple
Code:
find /directory | grep oo

?
# 5  
Old 09-24-2008
This is the smallest title I had ever seen in the forum Smilie

Title should be descriptive but not short and unhelpful Smilie
# 6  
Old 09-24-2008
Quote:
Originally Posted by raidzero
Yes this does look like homework, but since I have such a simple answer I will give you the benefit of the doubt...

You could try the simple
Code:
find /directory | grep oo

?
can just use -name ....
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question