5 ms·
Writing a correct POSIX script to rename files programmatically in Unix is surprisingly tricky; one reason is symlinks, the other is the binary nature of pathna
by ykonstant 3y ago
Writing a correct POSIX script to rename files programmatically in Unix is surprisingly tricky; one reason is symlinks, the other is the binary nature of pathnames (the third one is the anemic POSIX spec, but we make use of what we have). It is good that most people went with Perl for safety.
If I have time, I'll check these utils to see if they handle all pathnames correctly.