[olug] Unix Tip: To grab all hidden files

Unix Guru Universe listserv at ugu.com
Mon Jul 14 16:32:11 UTC 2003


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

			      UNIX GURU UNIVERSE 
			         UNIX HOT TIP

			Unix Tip 2021 - July 14, 2003

		    http://www.ugu.com/sui/ugu/show?tip.today

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


To grab all hidden files 

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


This tip generously supported by: muraliaj at synopsys.com




--------------------------------------------------------------------------
To Subscribe:    http://www.ugu.com/sui/ugu/show?tip.subscribe
To Unsubscribe:  http://www.ugu.com/sui/ugu/show?tip.unsubscribe
To Submit A Tip: http://www.ugu.com/sui/ugu/show?tip.today

==========================================================================
DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE
NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX 
GURU UNIVERSE. ALL TIPS ARE "USE AT YOUR OWN RISK". UGU  ADVISES THAT 
ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.

Unix Guru Universe - www.ugu.com - tips at ugu.com - Copyright 1994-2001
==========================================================================



More information about the OLUG mailing list