site-neo/get_sd.awk
2023-02-11 16:22:16 +00:00

5 lines
78 B
Awk

#!/usr/bin/awk
BEGIN{FS="/";x=2}
/\.\//{x++}
{gsub($0,"./","");print $x;exit}