From: Zlatko Calusic Date: Wed, 20 Apr 2005 17:21:43 GMT Subject: Re: [script] ge: export commits as patches Message-ID: In-Reply-To: <20050419134843.GA19146@elte.hu> Ingo Molnar writes: > TREE1=$(cat-file commit 2>/dev/null $1 | head -4 | grep ^tree | cut -d' ' -f2) -------------------------------------- And to make it easier on your eyes, you can always rewrite stuff like that (mentioned everywhere these days :)) like: TREE1=$(cat-file commit 2>/dev/null $1 | awk '/^tree/ {print $2}' ------------------------ No, I'm definitely not trying to save some CPU cycles, CPU cycles are cheap, eyes are expensive! :) -- Zlatko