File: diff-remove-abspath

package info (click to toggle)
zeekctl 2.2.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,544 kB
  • sloc: python: 5,639; sh: 1,374; makefile: 71; awk: 24
file content (5 lines) | stat: -rwxr-xr-x 126 bytes parent folder | download | duplicates (2)
1
2
3
4
5
#! /usr/bin/env bash
#
# Replace absolute paths with the basename.

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