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