From: Jeff Largent <jlargent@imagelinks.com>
To: pacho baratta <pachox@evolinux.it>
Cc: linux-admin@vger.kernel.org
Subject: Re: script to append data to a file
Date: Wed, 03 Sep 2003 08:19:21 -0400 [thread overview]
Message-ID: <3F55DC49.8070503@imagelinks.com> (raw)
In-Reply-To: <36606.195.223.52.2.1062590881.webmail@www.evolinux.it>
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.
next prev parent reply other threads:[~2003-09-03 12:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-03 12:08 script to append data to a file pacho baratta
2003-09-03 12:19 ` Jeff Largent [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-03 12:08 pacho baratta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F55DC49.8070503@imagelinks.com \
--to=jlargent@imagelinks.com \
--cc=linux-admin@vger.kernel.org \
--cc=pachox@evolinux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).