Re: search for specific pattern
On Sat, Jan 14, 2012 at 07:59:21PM +0100, roberto wrote:
> Hello,
> i am looking for a file whose name i don't remember.
> I only know it has the extension ".cmap" and is inside my home folder.
> Which is the correct search pattern to be passed to find program ?
You have all kinds of options.
locate .cmap
would list all such files.
ls -Rt | grep .cmap
would list all such files under the current dir, showing the most
recently edited first.
find . -name *.cmp
would also list all such files.
If you have tonso .cmap files, of course, none of these will narrow it
down.
Say you know you've edited it in the last 10 days; try
find ~ -mtime -10 -name *.cmap
Find is awesome. Learn more here:
http://www.linux.ie/newusers/beginners-linux-guide/find.php
./tony
--
http://tonybaldwin.me
stuff...lotso stuff, by tony
Reply to: