From b8c12f9d04cd86225e6dae74d03e0f5374a35a73 Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Sat, 30 Nov 2024 08:48:03 +0800 Subject: [PATCH] Remove control chars from log --- special-qemu-riscv-knsh.sh | 1 + special-qemu-riscv-knsh64.sh | 1 + special-qemu-riscv-nsh64.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/special-qemu-riscv-knsh.sh b/special-qemu-riscv-knsh.sh index 2ca2dfe..216a7a5 100755 --- a/special-qemu-riscv-knsh.sh +++ b/special-qemu-riscv-knsh.sh @@ -14,6 +14,7 @@ function test_once() { | sed 's/\x1B[<=>]//g' \ | sed 's/\x1B\[[0-9:;<=>?]*[!]*[A-Za-z]//g' \ | sed 's/\x1B[@A-Z\\\]^_]\|\x1B\[[0-9:;<=>?]*[-!"#$%&'"'"'()*+,.\/]*[][\\@A-Z^_`a-z{|}~]//g' \ + | cat -v \ >/tmp/special-qemu-riscv-knsh-clean.log cat /tmp/special-qemu-riscv-knsh-clean.log | \ gh gist create \ diff --git a/special-qemu-riscv-knsh64.sh b/special-qemu-riscv-knsh64.sh index 2ebf043..0013017 100755 --- a/special-qemu-riscv-knsh64.sh +++ b/special-qemu-riscv-knsh64.sh @@ -14,6 +14,7 @@ function test_once() { | sed 's/\x1B[<=>]//g' \ | sed 's/\x1B\[[0-9:;<=>?]*[!]*[A-Za-z]//g' \ | sed 's/\x1B[@A-Z\\\]^_]\|\x1B\[[0-9:;<=>?]*[-!"#$%&'"'"'()*+,.\/]*[][\\@A-Z^_`a-z{|}~]//g' \ + | cat -v \ >/tmp/special-qemu-riscv-knsh64-clean.log cat /tmp/special-qemu-riscv-knsh64-clean.log | \ gh gist create \ diff --git a/special-qemu-riscv-nsh64.sh b/special-qemu-riscv-nsh64.sh index 321027f..984a089 100755 --- a/special-qemu-riscv-nsh64.sh +++ b/special-qemu-riscv-nsh64.sh @@ -11,6 +11,7 @@ function runme() { | sed 's/\x1B[<=>]//g' \ | sed 's/\x1B\[[0-9:;<=>?]*[!]*[A-Za-z]//g' \ | sed 's/\x1B[@A-Z\\\]^_]\|\x1B\[[0-9:;<=>?]*[-!"#$%&'"'"'()*+,.\/]*[][\\@A-Z^_`a-z{|}~]//g' \ + | cat -v \ >/tmp/special-qemu-riscv-nsh64-clean.log cat /tmp/special-qemu-riscv-nsh64-clean.log | \ gh gist create \