From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Largent Subject: Re: script to append data to a file Date: Wed, 03 Sep 2003 08:19:21 -0400 Sender: linux-admin-owner@vger.kernel.org Message-ID: <3F55DC49.8070503@imagelinks.com> References: <36606.195.223.52.2.1062590881.webmail@www.evolinux.it> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <36606.195.223.52.2.1062590881.webmail@www.evolinux.it> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: pacho baratta Cc: linux-admin@vger.kernel.org perl -pe 's/$/;/g' >> / file_out pacho baratta wrote: > i run a script by cron to format some log files.here it is: > > perl -pe 's/$/;/g' > / file_out > > here i do a substitution of the end of line with a ";". > now i0d like to append data too, so i was wondering how to do. i tought about > command substitution but it doesn't seem to work for me, something like: > > perl -pe 's/$/`date`;/g' > / file_out > > what should i write to append date in my output file?? > > tnx, pacho > > > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- Jeff Largent ImageLinks, Inc.