Smart(er) mouse wheel zooming
[llpp.git] / misc / gc.awk
blobb20f68d55197f86bc87e005e8d1bad13fe580cfa
1 #!/usr/bin/gawk -f
2 @load "filefuncs"
4 BEGIN {
5 RS = OFS = ORS = "\000"
9 path = $0
10 getline time
12 r = stat(path)
13 data[1] = 1
14 if (stat(path, data) == -1) {
15 if ("locate -b -l 1 -e \"/" path "$\"" | getline npath > 0) {
16 npath = ""
18 print path npath "\000";
19 if (!npath) {
20 print "Removing " path "\n" > "/dev/stderr"