Is there a quick-and-dirty way to tell programmatically, in shell script or in Perl, whether a path is located on a remote filesystem (nfs or the like) or a local one? Or is the
stat -f -c %T should do what you want. You might also want -l
stat -f -c %T
-l