The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-10-2007
Paulw0t Paulw0t is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 10
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0