If you had been in the test directory, the first version would work, too.
Try changing the test in the first version to -f "$ORIG/$i" (yes, the / should work on Windows, too).
In reply to Re: file's treatment
by matija
in thread file's treatment
by boby_drack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |