add Bash glob for all directory entries, including hidden
authorhttps://launchpad.net/~kralph <kralph@web>
Fri, 19 Aug 2011 04:37:28 +0000 (21:37 -0700)
committerKenyon Ralph <kenyon@kenyonralph.com>
Fri, 19 Aug 2011 04:37:28 +0000 (21:37 -0700)
One-liners.mdwn

index e838185..e8774d8 100644 (file)
@@ -19,5 +19,7 @@
 1. Remove comment lines from configuration files: `grep --invert-match '^\[[:space:]]*#' /etc/file | cat --squeeze-blank`
 * There is a more sophisticated version of `cat --squeeze-blank` in the [GNU sed Info documentation](http://www.gnu.org/software/sed/manual/html_node/cat-_002ds.html#cat-_002ds).
 1. Remove all blank lines: `sed '/^\[[:space:]]*$/d'`
+1. Bash glob for all directory entries, including hidden: `{.[!.]*,*}`
+* <http://stackoverflow.com/questions/1586477/bash-globbing-autoexpand-for-a-few-specific-cases>
 
 [[!tag Linux Debian "Mac OS X" FreeBSD]]