Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!comp.vuw.ac.nz!nickson From: Ray.Nickson@comp.vuw.ac.nz (Ray Nickson) Newsgroups: comp.unix.shell Subject: Re: copying files Message-ID: Date: 13 Dec 90 01:20:55 GMT References: <169@raysnec.UUCP> <1990Dec6.230153.14856@wpi.WPI.EDU> <1990Dec7.180524.23145@iwarp.intel.com> <2763ACE5.12204@maccs.dcss.mcmaster.ca> Sender: news@comp.vuw.ac.nz (News Admin) Organization: Victoria University of Wellington, Wellington, New Zealand Lines: 33 Nntp-Posting-Host: circa.comp.vuw.ac.nz In-Reply-To: dan@maccs.dcss.mcmaster.ca's message of 10 Dec 90 15:42:29 GMT In article <2763ACE5.12204@maccs.dcss.mcmaster.ca> dan@maccs.dcss.mcmaster.ca (Dan Trottier) 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) The most efficient in terms of starting processes would be the following: alias l. 'set dotfiles = `echo .?*` ; echo $dotfiles[2-]' $ mkdir foo $ touch .a .xyz $ set dotfiles = `echo .?*`; echo $dotfiles[2-] [2-] ... oops, he means the CrackedShell ... $ csh % set dotfiles = `echo .?*`; echo $dotfiles[2-] .a .xyz ... looks ok, but ... % touch .- % set dotfiles = `echo .?*`; echo $dotfiles[2-] .. .a .xyz Problem: . and .. don't necessarily come first in a (sorted) directory listing! -rgn -- Ray Nickson + 64 4 721000x8144 "Winter in water colours"