Results 1 to 2 of 2
hello everyone
I am new to Linux/Unix. I am looking for Windows Search equivalent looking for file name patterns (not file contents but file names)....
I am aware of "globbing" ...
- 10-31-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 7
[SOLVED] howto: looking for a file under directory
hello everyone
I am new to Linux/Unix. I am looking for Windows Search equivalent looking for file name patterns (not file contents but file names)....
I am aware of "globbing" and wildcard recursive search functionality in ls but I am still not capable of finding files under directories.
for example: I want to find all files starting with a string lsnr* under root directory / and any sub-directories.....
ie I want to look for files like lsnr*.* anywhere under / and any sub-directories under / such as /dir1/dir2/dir4 and dir1/other/dir/someotherdir/sub-dir etc.
so if I have /dir1/lsnrcontrol and also have /dir1/dir/2/dir3/lsnr-tinit.dat then I want to list the files names etc.
I can not figure out how to do this using ls -R and wildcards. What am I doing wrong?
thanks in advance
- 10-31-2010 #2Just Joined!
- Join Date
- Sep 2010
- Posts
- 7
answering my own.....
sorry, I asked too soon.... found out how just now.....
find / -name lsnr*
above bash command seems to work
thanks for reading thus far.... apologies for creating noise here.


