I was reading a page about the performance of delete operation on thousands of files and it mentions the command below
perl -e 'for(<*>){((stat)[9]<(unlink))}'
Could anyone explain me why I have a 'command not found' while calling command 'stat' from the command-line while it's working through perl?
The stat
perl function is different from the stat
program.
Likely you may be running this from an environment that doesn't have a stat
program installed (Windows).