9 lines
152 B
Plaintext
9 lines
152 B
Plaintext
|
#! /bin/sh
|
||
|
# slash_path_relpath : lines (path ":" relpath) |> lines path
|
||
|
#
|
||
|
# Example: "/foo/bar: baz" => "/foo/baz"
|
||
|
#
|
||
|
set -euf
|
||
|
|
||
|
sed -n 's@/[^/]\+:@/@p'
|