How do I cut a path in Linux?

How do I cut a path in Linux?
Answer
You just set the delimiter to / .
…
  1. type -d will print only directories.
  2. mindepth will print the directories which have minimum 4 subdirectories.
  3. -d”/” use / as delimiter to cut.
  4. -f -5 cut the everything from the fifth column.
  5. sort -u will print sorted unique folder paths.
 

Tìm kiếm

Back
Top