From: Junio C Hamano Date: Thu, 10 Jan 2019 17:36:34 GMT Subject: Re: [PATCH v3 1/3] t5323: test cases for git-pack-redundant Message-ID: In-Reply-To: <20190110115704.GL4673@szeder.dev> SZEDER Gábor writes: >> Without `-E`, MasOS has to write two seperate sed commands, such as: >> >> git pack-redundant --all >out && >> sed -e "s#.*/pack-\(.*\)\.idx#\1#" out | \ >> sed -e "s#.*/pack-\(.*\)\.pack#\1#" Two commands, perhaps, but does it have to be two separate sed processes piped together? Why won't something like this work? sed -e 's|.*/pack-\([0-9a-f]*\)\.idx$|\1' \ -e 's|.*/pack-\([0-9a-f]*\)\.pack$|\1'