help please


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers help please
# 1  
Old 11-01-2007
help please

i am new here and i am a new user of unix.my problem is :
i want to find all the names of files under the directory /etc/and at any depth that contains the letters 'st'.how i can do it with using
a)ls
b)find

for (a) i am thinking something like ls -R|grep *st* but is wrong

any ideas ?????????
# 2  
Old 11-01-2007
with find :
Code:
find /etc/ -type f -print -exec ls -lR *conf* {} \;

- replace conf with your string.
# 3  
Old 11-01-2007
Code:
find /etc/ -type f | grep st

# 4  
Old 11-02-2007
thanks dudes

Last edited by nektarios4u; 11-02-2007 at 01:14 PM..
 
Login or Register to Ask a Question

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