Skip to content

Instantly share code, notes, and snippets.

@borntyping
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borntyping/10590469 to your computer and use it in GitHub Desktop.
Save borntyping/10590469 to your computer and use it in GitHub Desktop.
❯ mkdir test
❯ touch test/{a,b,c}
❯ touch test/.{a,b,c}
❯ ls -la test/.*
-rw-r--r-- 1 sam sam 0 Apr 13 17:10 test/.a
-rw-r--r-- 1 sam sam 0 Apr 13 17:10 test/.b
-rw-r--r-- 1 sam sam 0 Apr 13 17:10 test/.c
❯ rm -v test/.*
removed `test/.a'
removed `test/.b'
removed `test/.c'
❯ mkdir test-2
❯ touch test/.{a,b,c}
❯ cp -vrf test/.* test-2
`test/.a' -> `test-2/.a'
`test/.b' -> `test-2/.b'
`test/.c' -> `test-2/.c'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment