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