help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Howto get tags into TIMEFORMAT? (was Re: howto redirect


From: Chet Ramey
Subject: Re: [Help-bash] Howto get tags into TIMEFORMAT? (was Re: howto redirect time output to perl -pe "chomp; "?
Date: Tue, 3 Jan 2017 16:14:50 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

On 1/3/17 3:09 PM, Larry Evans wrote:

> for TIMEFORMAT lead to the following:
> 
> If this variable is not set, Bash acts as if it had the value
> 
> $'\nreal\t%3lR\nuser\t%3lU\nsys\t%3lS'
> 
> So, I figured I could use:
> 
>   TIMEFORMAT='\nreal\t%1R'

You forgot the leading `$'.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]