* This one time, at band camp, Jeff Ai said:
Hello guys, how can i get the * character in shellscript(bash)
I tried use '*' and it desn't work.
Jeff
tgreen@animal:~$ echo \*
*
tgreen@animal:~$
\ escapes the character from the shell
--
Greeno [EMAIL PROTECTED]
GnuPG Key :
Did you try
echo \*
S. :)
PLEASE NOTE:
This email transmission is confidential and intended solely for the
addressee. If you are not the intended addressee, you must not use,
disclose or print this transmission and you should delete it from your
system.
--
SLUG - Sydney Linux User
* On Fri Sep 14, 2001 at 03:21:28PM +1000, Jeff Ai ([EMAIL PROTECTED]) wrote:
No, that is not what i want. i want to echo * in a shell script.
e.g:
STAR='*'
echo $STAR
\ is the first thing i tried, didn't work.
STAR='*'
echo $STAR
--
Tony Green [EMAIL PROTECTED]
Mobile :
Fixed
by Tony Green
STAR='*'
echo
"$STAR"
-Original Message-From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeff AiSent:
Friday, 14 September 2001 3:15 PMTo: 'Slug
(E-mail)Subject: [SLUG] how can i echo *
character
Hello guys, how
can i get the *
On Fri, Sep 14, 2001 at 03:41:53PM +1000, Jeff Ai wrote:
Fixed by Tony Green
STAR='*'
echo $STAR
That's very convoluted. The following will work:
echo *
echo '*'
echo \*
If you're using bash anyhow.
--
CaTAs you can expect it's really affecting my sex life. I can't help