14 lines
251 B
Awk
14 lines
251 B
Awk
@load "filefuncs"
|
|
BEGIN {
|
|
exists("input.txt")
|
|
exists("/input.txt")
|
|
exists("docs")
|
|
exists("/docs")
|
|
}
|
|
|
|
function exists(name ,fd) {
|
|
if ( stat(name, fd) == -1)
|
|
print name " doesn't exist"
|
|
else
|
|
print name " exists"
|
|
}
|