Skip to content

Instantly share code, notes, and snippets.

@shaneturner
Created November 11, 2019 02:16
Show Gist options
  • Save shaneturner/98712b3ebb5943509dff98e00e81ed63 to your computer and use it in GitHub Desktop.
Save shaneturner/98712b3ebb5943509dff98e00e81ed63 to your computer and use it in GitHub Desktop.
Linux list directories into file
for i in $(ls -d */); do echo ${i%%/}; done > dirlist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment