a program created folders recursively. it is too deep, the full path string length is longer than the MAX (getconf ARG_MAX), for example: /A/B/C/A/B/C/A/B/C//A/B/C/A/B/C/A/B/C/A/B/C/A/B/C/A/B/C/A/B/C/A/B/C/A/B/C/A/B/C/A/B/C/A/B/C/A/B/C/A/B/C/A/B/C …… so "sudo rm -fr /A" says "Bad address".
How to create a script to deal with it? Thanks,
Interesting problem.
I guess you could create a command line tool with Xcode (file -> new project -> command line tool, insert code, then click the "run" toolbar button).