changeset 6087:047bfffd1043

<fizzie> ` sed -i -e \'s/ | perl.*//\' bin/asm
author HackBot
date Sat, 17 Oct 2015 10:37:17 +0000
parents 549c712191ca
children 304b6e5b089f
files bin/asm
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/asm	Sat Oct 17 10:36:28 2015 +0000
+++ b/bin/asm	Sat Oct 17 10:37:17 2015 +0000
@@ -1,2 +1,2 @@
 #!/bin/sh
-echo "$1" | as -c /dev/stdin -o /tmp/asm.o; objdump -d --insn-width=20 /tmp/asm.o | sed -e "1,/0000000000000000/d" | perl -pe 'if (/^s*(d+:)s*((?:ww )+)s*(S.*)$/) { ($a,$b,$c) = ($1,$2,$3); $_ = "$a  $b  ".($c =~ s/s+/ /rg); }'
+echo "$1" | as -c /dev/stdin -o /tmp/asm.o; objdump -d --insn-width=20 /tmp/asm.o | sed -e "1,/0000000000000000/d"