user3523781 user3523781 - 1 year ago 64
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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download