mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
13 lines
286 B
Bash
Executable file
13 lines
286 B
Bash
Executable file
#! /usr/bin/env bash
|
|
#
|
|
# Replace absolute paths with the basename.
|
|
|
|
if [ $(uname) == "Linux" ]; then
|
|
sed="sed -r"
|
|
else
|
|
sed="sed -E"
|
|
fi
|
|
|
|
$sed 's#/+#/#g' |
|
|
$sed 's#[^( ]*testing_btest#<___>testing_btest#' |
|
|
$sed 's#([a-zA-Z]:)?/([^ :/]{1,}/){1,}([^ :/]{1,})#<...>/\3#g'
|