From owner-freebsd-questions Thu Jan 17 10:46:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from marble.dublin.wbtsystems.com (marble.dublin.wbtsystems.com [193.120.231.8]) by hub.freebsd.org (Postfix) with ESMTP id 35C0437B419 for ; Thu, 17 Jan 2002 10:46:18 -0800 (PST) Received: from spiral (spiral.dublin.wbtsystems.com [193.120.231.190]) (authenticated) by marble.dublin.wbtsystems.com (8.11.6/8.11.6) with ESMTP id g0HIjgW74686; Thu, 17 Jan 2002 18:45:42 GMT From: "Barry Byrne" To: , "ann kok" Cc: Subject: RE: command ls question Date: Thu, 17 Jan 2002 18:45:40 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-reply-to: <3C471A42.2020707@verizon.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ann: 'ls ?' will fail if there are no files of only one character in length in the directory. If there is at least one, it/they will be listed. - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland Phone: +353 1 417 0150 Fax: +353 1 478 5544 Email: barry.byrne@wbtsystems.com Web: www.wbtsystems.com > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Simon Morton > Sent: 17 January 2002 18:39 > To: ann kok > Cc: smorton@acm.org; freebsd-questions@FreeBSD.ORG > Subject: Re: command ls question > > > ann kok wrote: > > > Dear all > > > > My english is not good > > so it makes you confusion > > > >>From the book, it shows rm temp? > > it can remove tempa tempb temp1 > > > Correct. > > > > ? stands for one char > > > Correct. > > > > > If I have files a, bc , ef, but ls ? doesn't work! > > > What do you mean by "doesn't work"? Please include in your email > the output of the "ls ?" command and why you think it is not correct. > You are not giving us enough information. > > Simon > > > > > > > > --- Simon Morton wrote: > > > >>ann kok wrote: > >> > >> > >>>Dear all > >>> > >>>I would like to know how about command ls > >>> > >>>display a char #ls ? doesn't work > >>> > >> > >>Works for me... > >> > >>holly:~> ls ? > >>ls: No match. > >>holly:~> echo "foo" > f > >>holly:~> ls ? > >>f > >>holly:~> > >> > >> > >>>remove the files temp1 temp2 temp3 > >>> > >>>#rm temp [1-5 7-9] doesn't work > >>> > >> > >>It works if you remove the spaces. > >> > >>holly:~> echo "foo" > temp1 > >>holly:~> echo "foo" > temp2 > >>holly:~> echo "foo" > temp3 > >>holly:~> rm temp[1-57-9] > >>holly:~> ls temp* > >>ls: No match. > >>holly:~> > >> > >> > >>>and > >>> > >>>ls doesn't accurate to display disk space > >>>because some files are link by command ln > >>>it counts double > >>> > >> > > >> > >>>is it right? > >>> > >> > >>True. Use du or df to find out about disk space. > >> > >>-- > >>http://www.SimonMorton.com > >>smorton at acm dot org > >>\rm -rf /bin/laden > >> > >> > > > > > > __________________________________________________ > > Do You Yahoo!? > > Send FREE video emails in Yahoo! Mail! > > http://promo.yahoo.com/videomail/ > > > > > > > > -- > http://www.SimonMorton.com > smorton at acm dot org > \rm -rf /bin/laden > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message