File: diff-remove-abspath

package info (click to toggle)
btest 0.72-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,208 kB
  • sloc: python: 2,187; sh: 547; makefile: 165; xml: 12; awk: 1
file content (5 lines) | stat: -rwxr-xr-x 124 bytes parent folder | download | duplicates (7)
1
2
3
4
5
#! /usr/bin/env bash
#
# Replace absolute paths with the basename.

sed 's#/\([^/]\{1,\}/\)\{1,\}\([^/]\{1,\}\)#<...>/\2#g'