Article View: comp.unix.programmer
Article #3845Re: How can I print "*" in unix shell program
From: Floyd Davidson
Date: Mon, 13 May 2002 02:32
Date: Mon, 13 May 2002 02:32
30 lines
1536 bytes
1536 bytes
"�����" <myunggyu@hotmail.com> wrote: >I wanna print * >But following script prints files in current directory >How can I print * > >[root@ns /root]# cat a.sh >#!/bin/sh > >AA="*" >echo $AA $cat a.sh #!/bin/sh AA="*" echo "$AA" $./a.sh * >[root@ns /root]# ./a.sh _Don't_ do these things as root. >Desktop a.sh dnsCache.db hostsInfo.db intop_history manage nsmail ntop_pw.db >sec -- Floyd L. Davidson <http://www.ptialaska.net/~floyd> Ukpeagvik (Barrow, Alaska) floyd@barrow.com
Technical Details
Message-ID:
<87sn4w3hhz.fld@barrow.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1References:
<abgerh$g5j$1@news1.kornet.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1012a6,76a163ff68bd9a1d X-Google-Attributes: gid1012a6,public X-Google-Thread: fc89c,76a163ff68bd9a1d X-Google-Attributes: gidfc89c,public X-Google-Thread: 105eb6,76a163ff68bd9a1d X-Google-Attributes: gid105eb6,public X-Google-ArrivalTime: 2002-05-12 19:51:19 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1 From: Floyd Davidson <floyd@ptialaska.net> Newsgroups: comp.unix.programmer,comp.unix.shell,han.comp.os.linux.devel Subject: Re: How can I print "*" in unix shell program Date: 12 May 2002 18:32:08 -0800 Organization: __________ Lines: 30 Sender: floyd@barrow.com Message-ID: <87sn4w3hhz.fld@barrow.com> References: <abgerh$g5j$1@news1.kornet.net> NNTP-Posting-Host: p-620.newsdawg.com Mime-Version: 1.0 Content-Type: text/plain; charset="" Content-Transfer-Encoding: 8bit User-Agent: gnus 5.8.3/XEmacs 21.1.9/Linux