Re: Regular expression question

2008-10-06 Thread Olteanu Eugen
It looks there is a space there.. # perl -e '$text = "(7) 32"; printf "[%s][%s]\n", ( $text =~ /\((\d+) \)\s+(\d+)/ )' [][] # perl -e '$text = "(7) 32"; printf "[%s][%s]\n", ( $text =~ /\((\d+)\)\s+(\d+)/ )' [7][32] On Mon, Oct 6, 2008 at 2:51 PM, irata <[EMAIL PROTECTED]> wrote: > Hello,

Re: Get the last entry of log file

2008-09-23 Thread Olteanu Eugen
Maybe this helps : tail -1 file and redirect the output to a file. On Mon, Sep 22, 2008 at 10:46 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > Mr. Shawn H. Corey wrote: > >> On Wed, 2008-09-17 at 13:18 +0100, Stewart Anderson wrote: >> >>> How about a system(tail -x inputfile >> mylastfile)