13 lines
214 B
Bash
Executable File
13 lines
214 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#/([^ :/]{1,}/){1,}([^ :/]{1,})#<...>/\2#g'
|