Re: Showing hidden files
From: Chris F.A. Johnson (c.fa.johnson_at_rogers.com)
Date: 03/12/04
- Next message: Drew: "Floppy installation"
- Previous message: Kris: "Showing hidden files"
- In reply to: Kris: "Showing hidden files"
- Next in thread: Stephane CHAZELAS: "Re: Showing hidden files"
- Reply: Stephane CHAZELAS: "Re: Showing hidden files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 11 Mar 2004 23:16:39 GMT
On Thu, 11 Mar 2004 at 22:55 GMT, Kris wrote:
> If I wanted to write a command sequence that lists only the hidden
> files in the current directory what would I write?
Take your pick:
echo .*
ls .*
printf "%s\n" .*
any_command .*
In other words, the shell expands .* to a list of all the files in
the current directory that begin with a dot. Note that that also
includes "." and "..".
--
Chris F.A. Johnson http://cfaj.freeshell.org/shell
===================================================================
My code (if any) in this post is copyright 2004, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
- Next message: Drew: "Floppy installation"
- Previous message: Kris: "Showing hidden files"
- In reply to: Kris: "Showing hidden files"
- Next in thread: Stephane CHAZELAS: "Re: Showing hidden files"
- Reply: Stephane CHAZELAS: "Re: Showing hidden files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|