|
|
reading all links from a file - grep command - Linux
|
Views : 376
|
|
Tagged in : Linux
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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... |
|
By rajesh, On - 2009-11-10 |
|
|
|