A safe way of grabbing all "hidden" files is to use '.??*' rather than '.*' since this will only match 3 or more characters. Admittedly, this will miss any hidden files that are only a single character
after the ., but it will always miss '.' & '..', which is probably more important...
We can use .[a-zA-Z0-9]* to grab all hidden files other than . and .. we will not get hidden files which dont have any alphanumeric character following the first '.' - can someone tell how to go about this
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment