Re: quick howto-command questions?
On Wed, Mar 21, 2001 at 04:19:07AM -0000, john smith wrote:
> hi,
> Let's say I have 3 files namely; one.c, two.c and a hidden .c file (.hid.c).
> now I want to list them... the command
> ls -al *.c shows only the two files and it doesn't show the third one... any
> ideas?
>
Quite right ...
ls -a | grep ".c$"
(or variations e.g. ls -al | grep ".c$")
does what you want.
Reason is that * doesn't match .
Bob
--
"If we were meant to fly, we wouldn't keep losing our luggage."
Reply to: