![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Search for a string and copy the entire line | forumthreads | UNIX for Dummies Questions & Answers | 3 | 06-29-2009 08:29 AM |
| Search, replace string in file1 with string from (lookup table) file2? | gstuart | Shell Programming and Scripting | 9 | 06-08-2009 07:11 AM |
| How to List and copy the files containing a string | redlotus72 | UNIX for Dummies Questions & Answers | 11 | 09-28-2007 12:58 PM |
| Sun's 'Project Copy Linux' not a Linux copy - Register | iBot | UNIX and Linux RSS News | 0 | 07-29-2007 06:31 AM |
| find and copy string in a file | vascobrito | UNIX for Advanced & Expert Users | 10 | 03-03-2004 02:14 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Copy / string.
I'm trying to get a script to copy a url then put it in a different place in the file.
Example is currently the script goes to a site takes the urls on it and then puts them into an html file. Only thing is I want to make them into links. So currently lynx goes to the page takes out the urls. Then using sed I add <a href etc to the start and end of the lines. E.g. <a href="http://url.com/site.html" > site name</a> I want to the put url into the site name so I'm looking for a command that will search for a string inside the " " and then put it at the end of that line. Because there could be 20 or 30 lines in each page I'm not sure how to do this. Its probily really easy but i'm getting lost here. Also any books you could recomend for working on simple shell stuff ? Thanks. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|