I want to touch the files in a directory so that the first file in the directory (by alphabetical ordering) was touched last.
I am having trouble even referencing the current directory in the function. I've tried:
for f in $PWD ; touch f; done
and this returns an error. But I think this would, even if it worked, be touching the files in order, and I want to do this in reverse.