site-neo/get_sd.awk

5 lines
78 B
Awk
Raw Normal View History

2023-02-11 11:22:16 -05:00
#!/usr/bin/awk
BEGIN{FS="/";x=2}
/\.\//{x++}
{gsub($0,"./","");print $x;exit}