Quote:
Originally Posted by yousillygoose
how do you output to a variable???
|
Continuing the previous example, say VARIABLE=$(grep "\]64 [100-200]" | cut -c35-36 ~/tempfile.$$)
Quote:
Originally Posted by yousillygoose
Here is a question for you more specifically about lynx so I don't know if you can answer it. How do I have lynx load a webpage with the url to be found in a file?
|
If the file *only* contains the URI you could say 'lynx $(cat ~/somefile)', OTOH if the file contains more you best grep for the URI, like 'lynx $(grep the_URI ~/somefile)'. Maybe at this point it would be easier to post your script (preferably in BB code tags)?..