discuss-gnustep
[Top][All Lists]
Advanced

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

Re: NSLog options


From: Truls Becken
Subject: Re: NSLog options
Date: Mon, 6 Feb 2012 15:32:08 +0100

On 2012-02-06, at 15:11, Matt Rice wrote:

> FWIW, I have on occasion found the header to be annoying as well,
> (though I am well aware of fprintf/and GSPrintf if it still exists)
> note that use of %@ in fprintf isn't terribly portable, the reason why
> is the NSLogs already existed and I wanted to run diff on them (which
> the header screws up).

You could 'sed-script away' the prefix in the diff command, something like:

diff -u <(sed 's/[^]]*] //' file1) <(sed 's/[^]]*] //' file2)

Cheers,
Truls



reply via email to

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