summaryrefslogtreecommitdiffstats
path: root/bin/slash-path-relpath
blob: 40230a70c48b9263e5887c663cf69b347c9c25b5 (plain)
1
2
3
4
5
6
7
8
#! /bin/sh
# slash_path_relpath : lines (path ":" relpath) |> lines path
#
# Example: "/foo/bar: baz" => "/foo/baz"
#
set -euf

sed -n 's@/[^/]\+:@/@p'