Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I often use Lynx on a remote computer to look at websites (faster than port-forwarding). Sometimes the URLs I want to go to have un-escaped characters (for example brackets) that Lynx seems to need encoded. for example http://www.example.com/This(URL)is anExample.html should be http://www.example.com/This%28URL%29is%20anExample.html.

Is there an existing script for this? Alternatively is there some option for Lynx that would make it unnecessary?

share|improve this question
up vote 6 down vote accepted

You can escape a string on the command line by using single ticks, so

lynx 'http://www.example.com/This(URL)is anExample.html'

Will pass the URL unchanged to lynx, or any other program.

share|improve this answer
Excellent!, thanks. – Niall Murphy Aug 17 '10 at 13:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.