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