Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
3 user(s) are online (3 user(s) are browsing Forum)

Members: 2
Guests: 1

Kalamatee, DizzyOfCRN, more...

Browsing this Thread:   1 Anonymous Users





echo and quote

Joined:
2017/3/3 13:00
Group:
Member
Posts: 81
Offline
I would want to see on my prompt something like this:

"test"

but the following does not work:

echo "\"test\""

\ test\""

Why?

Posted on: 12/13 11:09
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2017/3/3 13:00
Group:
Member
Posts: 81
Offline
ok this seems to be the solution:

echo "*"test*""

"test"

Posted on: 12/13 12:13
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2013/5/8 8:07
From Germany
Group:
Member
Posts: 12
Offline
Indeed, backslash is C, asterisk is BCPL

Posted on: 12/30 15:47
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2017/3/3 13:00
Group:
Member
Posts: 81
Offline
How to print the following chars:

echo "*"*;"
Echo: argument line invalid or too long

echo "*"*|"
Error in command name

1000000$ to solve this question.

Posted on: 1/18 8:14

Edited by Pasquale on 2018/1/19 8:05:03
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2017/3/3 13:00
Group:
Member
Posts: 81
Offline
The _pchar and the _mchar are not to set, this solves the second issue, the other remains.

Posted on: 1/19 1:27
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2004/10/30 17:13
From Ireland
Group:
Member
Posts: 2743
Offline
I'd be surprised if you need to escape ; or |

Does this work?:
Echo "*";"

I'm assuming you want this output:
";

Posted on: 1/19 17:32
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2017/3/3 13:00
Group:
Member
Posts: 81
Offline
No, it does not work.

Posted on: 1/20 6:23
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2009/9/27 22:09
Group:
Member
Posts: 1047
Offline
Works if you insert a space and shift the cursor over. Is that cheating?

echo " ;*E[2D*""
";

And about the million bucks...

Posted on: 1/23 11:38
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2017/3/3 13:00
Group:
Member
Posts: 81
Offline
You get 500000$, the second i solved by my self.

Posted on: 1/23 13:13

Edited by Pasquale on 2018/1/24 1:26:01
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4398
2 magorium
magorium
4095
3 phoenixkonsole
phoenixkonsole
3904
4 nikolaos
nikolaos
3895
5 deadwood
deadwood
2923
6 ncafferkey
ncafferkey
2743
7 mazze
mazze
2220
8 clusteruk
clusteruk
2112
9 Kalamatee
Kalamatee
2082
10 damocles
damocles
1789
© 2004-2017 AROS Exec