Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bash script for cygwin to save list of dirs to clipboard
find . -maxdepth 1 -type d | ruby -pe 'gsub(/^\.\/?/, "")' | grep '.' > /dev/clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment