Re: something regards find
On Fri, Dec 30, 2011 at 12:04:31PM +0800, lina wrote: Hi, I don't know how to find one file out, one file contains some numbers, like 7.9 2.4 4.2 12.2 and etc I can't remember the file name. I tried: $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */* $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */*/* How about using locate 7.9 ? Regards -- Wilko FokkenEducation is a man's going Landschaftspolder 67from cocksure ignorance D-26831 Bunde to thoughtful uncertainty. Tel. 04953-9219882 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120104111917.ga8...@fok01.laje.edewe.de
Re: something regards find
On 4 January 2012 12:19, Wilko Fokken wfok...@web.de wrote: On Fri, Dec 30, 2011 at 12:04:31PM +0800, lina wrote: Hi, I don't know how to find one file out, one file contains some numbers, like 7.9 2.4 4.2 12.2 and etc I can't remember the file name. I tried: $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */* $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */*/* How about using locate 7.9 ? I think .. is about files content, not file name. And.. it's better use find (slower, yes). 'locate' needs update the database to see all files.. etc Regards -- Wilko Fokken Education is a man's going Landschaftspolder 67 from cocksure ignorance D-26831 Bunde to thoughtful uncertainty. Tel. 04953-9219882 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120104111917.ga8...@fok01.laje.edewe.de -- Porqué loitar e matar, se podes amar e sonhar /\ \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL / \ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAHBBs9RjTqRE_bVcvLwfSf8pRy+5MG¾uuu7augfvo1lje...@mail.gmail.com
Re: something regards find
On Wed, Jan 04, 2012 at 12:42:36PM +0100, pedro insua wrote: On 4 January 2012 12:19, Wilko Fokken wfok...@web.de wrote: On Fri, Dec 30, 2011 at 12:04:31PM +0800, lina wrote: Hi, I don't know how to find one file out, one file contains some numbers, like 7.9 2.4 4.2 12.2 and etc I can't remember the file name. I tried: $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */* $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */*/* I think .. is about files content, not file name. Maybe this one? : find . -type f -name *7.9* -exec grep -H . {} \; W. Fokken -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120104120128.gb8...@fok01.laje.edewe.de
Re: something regards find
On Wednesday 04,January,2012 08:01 PM, Wilko Fokken wrote: On Wed, Jan 04, 2012 at 12:42:36PM +0100, pedro insua wrote: On 4 January 2012 12:19, Wilko Fokkenwfok...@web.de wrote: On Fri, Dec 30, 2011 at 12:04:31PM +0800, lina wrote: Hi, I don't know how to find one file out, one file contains some numbers, like 7.9 2.4 4.2 12.2 and etc I can't remember the file name. I tried: $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */* $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */*/* I think .. is about files content, not file name. Maybe this one? : find . -type f -name *7.9* -exec grep -H . {} \; W. Fokken Thanks all, find . -type f -name *.txt -exec grep -H 7.9 \{\} \ works well. Best regards, -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f044bf2.1050...@gmail.com
Re: something regards find
On Wed, Jan 04, 2012 at 12:19:18PM +0100, Wilko Fokken wrote: On Fri, Dec 30, 2011 at 12:04:31PM +0800, lina wrote: Hi, I don't know how to find one file out, one file contains some numbers, like 7.9 2.4 4.2 12.2 and etc I can't remember the file name. I tried: $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */* $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */*/* How about using locate 7.9 ? Unless I'm completely senile, that will only work if the filename contains 7.9. ./tony -- http://www.tonybaldwin.me All Tony, all the time! -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120104152252.gb32...@deathstar.hsd1.ct.comcast.net
Re: something regards find
于 2011-12-30 12:04, lina 写道: Hi, I don't know how to find one file out, one file contains some numbers, like 7.9 2.4 4.2 12.2 and etc I can't remember the file name. I tried: $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */* $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */*/* not work, Thanks with best regards, Maybe you can try $ grep -lR 7.9\|2.4\|4.2\|12.2 /pathname -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4efd6e74.4080...@gmail.com
something regards find
Hi, I don't know how to find one file out, one file contains some numbers, like 7.9 2.4 4.2 12.2 and etc I can't remember the file name. I tried: $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */* $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */*/* not work, Thanks with best regards, -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4efd384f.10...@gmail.com
Re: something regards find
On 12/29/11, lina lina.lastn...@gmail.com wrote: Hi, I don't know how to find one file out, one file contains some numbers, like 7.9 2.4 4.2 12.2 and etc I can't remember the file name. I tried: $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */* $ grep -e 7.9 -e 2.4 -e 4.2 -e 12.2 */*/* not work, Thanks with best regards, Is that all deep you want to go? You can use -r (man grep) for recursive, in case it's found deeper, and just provide the common root to all directories... -- Javier. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/calurrgelfjsmj6_7x2khq8yxoanunnvwihj1uwp3m9lf7db...@mail.gmail.com