Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2002 15:43:50 -0500
From:      Lucas Bergman <lucas@slb.to>
To:        Brendan McAlpine <bmcalpine@macconnect.com>
Cc:        questions@freebsd.org
Subject:   Re: Scripting question...
Message-ID:  <20020408154350.B75071@comp104.hrpc.uic.edu>
In-Reply-To: <B8D75512.BD50%bmcalpine@macconnect.com>; from bmcalpine@macconnect.com on Mon, Apr 08, 2002 at 02:09:22PM -0400
References:  <B8D75512.BD50%bmcalpine@macconnect.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.

I haven't tested this, but...

  $ ( find /some/dir -type f -name detail | xargs cat ) >target-file

Lucas

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?20020408154350.B75071>