Date: Tue, 9 Apr 2002 18:04:26 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Buki <dev@null.cz> Cc: Brendan McAlpine <bmcalpine@macconnect.com>, questions@FreeBSD.ORG Subject: Re: Scripting question... Message-ID: <20020409150426.GB64641@hades.hell.gr> In-Reply-To: <20020409082142.B14238@veverka.sh.cvut.cz> References: <B8D75512.BD50%bmcalpine@macconnect.com> <20020408211858.GA25469@hades.hell.gr> <20020409082142.B14238@veverka.sh.cvut.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-04-09 08:21, Buki wrote: > On Tue, Apr 09, 2002 at 12:18:58AM +0300, Giorgos Keramidas wrote: > > On 2002-04-08 14:09, Brendan McAlpine wrote: > > > I have a set of directories that contain radius log files from the last > > > month. Each log file is named the same thing but the directories they > > > reside in are date stamped. I want to write a script that searches the > > > directories, finds files named ?detail?, and cats the detail files into one > > > large combined file. > > > > For deeper nestings, you can probably get away with */*/detail, but > > it's safer to use find/xargs: > > > > $ ( find . -name detail -type f | xargs cat ) > /tmp/foo > > as the result should be one large file, I'd probable replace > with >> That's why I used parentheses to group the commands :) Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020409150426.GB64641>