mirror of https://github.com/0intro/wmii
14 lines
163 B
Plaintext
14 lines
163 B
Plaintext
|
#!/bin/sh -f
|
||
|
|
||
|
echo "$@" |
|
||
|
awk '{
|
||
|
gsub(/\/+/, "/")
|
||
|
while(gsub("[^/]+/\.\.(/|$)", ""))
|
||
|
;
|
||
|
while(gsub("/\.(/|$)", "/"))
|
||
|
;
|
||
|
gsub(/\/+/, "/")
|
||
|
print
|
||
|
}'
|
||
|
|