reading all links from a file - grep command
by rajesh[ Edit ] 2009-11-10 12:35:24
grep command can be used to read all links from a page..
for example, to list all the http links in a page that end with mp3, we can use the command as
grep -o http://[^[:space:]]*.mp3 page
To read and move the links in to a different page
grep -o http://[^[:space:]]*.mp3 page > links
Now the page name links will contain all the http links that end with mp3...