List of directories (Unix) without the current directory shortcut and just the names

/ Published in: Bash
Save to your folder(s)

Copy this code and paste it in your HTML
  1. find . -maxdepth 1 -mindepth 1 -type d | grep -v ‘^\./\.’ | cut -d/ -f2

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.