P. 1
Maa Ebs Dbm Datapump 167285

Maa Ebs Dbm Datapump 167285

|Views: 322|Likes:
Published by Claudio Luco

More info:

Published by: Claudio Luco on Aug 02, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/12/2012

pdf

text

original

This script can be used to prepend a timestamp to a file while it is being generated. This file is
named tailTime.

#!/bin/bash
# tail of a file and add a timestamp to the output
#
export logfile=$1
tail -f $logfile | (
while true; do
read var; printf "%s " `date '+%y%m%d %H:%M:%S'` $var;
echo
done
)
echo "done!"

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->