copying files

Brian Fennell fenn at wpi.WPI.EDU
Fri Dec 7 10:01:53 AEST 1990


In article <169 at raysnec.UUCP> shwake at raysnec.UUCP (Ray Shwake) writes:
>rouben at math13.math.umbc.edu (Rouben Rostamian) writes:
>
>>In article <1990Dec5.021951.28104 at en.ecn.purdue.edu> nichols at en.ecn.purdue.edu (Scott P Nichols) writes:
>>|
>>|Do any of you UNIX wizards know how to even list all of
>>|the names of the files which begin '.' (besides, of course
>>|the files in the root (second line of list) 
>>|
>
>>Try
>>	ls -d .*
>
>	For some users on some systems, this will list both current directory
>(.) and parent directory (..), which is not what is required. Try instead:
>
>	ls -d .??*

ls -dal `ls -da .* | grep -v '^\.$' | grep -v '^\.\.$' `

sheeeeeesh



More information about the Comp.unix.shell mailing list