Nguyễn Tuấn Dương
New member
How do I cut a path in Linux?
Answer
You just set the delimiter to / .
…
Answer
You just set the delimiter to / .
…
- type -d will print only directories.
- mindepth will print the directories which have minimum 4 subdirectories.
- -d”/” use / as delimiter to cut.
- -f -5 cut the everything from the fifth column.
- sort -u will print sorted unique folder paths.