unbt.sh 198B

1234567891011
  1. #!/bin/bash
  2. for bt in backtrace*;
  3. do
  4. btn=${bt#backtrace}
  5. cat $bt \
  6. | grep "^#" \
  7. | perl -pe 's/(#[0-9]+ +)0x0[0-9a-f]+/$1 0x????/' \
  8. | sort \
  9. > fns$btn
  10. done