SZEDER Gábor <szeder.dev@xxxxxxxxx> 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'