zeek/testing/scripts/diff-remove-abspath

7 lines
204 B
Bash
Executable file

#! /usr/bin/env bash
#
# Replace absolute paths with the basename.
sed -E 's#/+#/#g' |
sed -E 's#[^( ]*testing_btest#<___>testing_btest#' |
sed -E 's#/([^ :/]{1,}/){1,}([^ :/]{1,})#<...>/\2#g'