List folder/file path length as a number
-
Apple and Linux usage.
Is there anyway to jump into a folder and run a simple command, and then list the character count in the path?
-
I was thinking something along the lines of
pwd
but that won't explore the path.I'm more looking for "check here for long paths, list the path, and the character count if the path is above # characters long"
-
Not quite what you want, but will do what you need....
find -regextype posix-extended -regex '.{257,}'
Replace the 257 with whatever length you want to search for as a threshold.
-
@scottalanmiller That could work. . .
-
It's the low hanging fruit approach.
-
@scottalanmiller said in List folder/file path length as a number:
It's the low hanging fruit approach.
The repetitive of this is what I was considering, and piping it out to something.
-
@dustinb3403 said in List folder/file path length as a number:
@scottalanmiller said in List folder/file path length as a number:
It's the low hanging fruit approach.
The repetitive of this is what I was considering, and piping it out to something.
Use that to make a script and an email alert!