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