Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.