user3523781 user3523781 - 10 months ago 49
Linux Question

how to use `amp;` & `gt;` commands in linux-shell?

i downloaded a script from Internet.
when i run it, it stops because of

command and says
No command 'amp' found

what is
what is
what does they do?

Answer Source

I suspect this has undergone an HTML entity translation. You want to reverse this e.g.

& becomes &


> becomes >

So (for example)

cd /dir && ls > filename

would become

cd /dir && ls > filename