How to delete long path names with bash shell script?
June 2, 2008 10:07 PM Subscribe
BASHFilter! I've got a simple bash script that I've written to clean out a frequently used NAS. I run it every 30 days, it sets proper permissions, removes extraneous files and directories, but it frequently hangs on paths longer than 255 characters.
posted by jackofsaxons to Computers & Internet (13 answers total)
I'm no bash ninja, so I've been beating my head against a wall trying to figure out how to check path length of directories, and then prompt for either renaming to shorten them, or prompt for deletion. Help me Metafilter!