Grep to pull specific hyperlinks out of files
Basically I'm looking for a grep command that pulls some Facebook hyperlinks out of multiple text files and dumps all the links into another text file.
grep -io * http://www.facebook.com/n/?inbox/rea...p&t=?????????? > LinkFile.txt
(not sure if I should use -x or not seeing as how the numbers are different)
They are exactly the same except the 10 numbers at the end. I want to find all these links regardless of what the numbers are and push them into a file. If anyone is super ambitious it'd be neat to make it so the same link doesn't get repeated AND/OR make each link clickable in an HTM file. :)
I've used some simple grep in the past, but I think this might use regular expressions (which I have not much experience). I've tried this a couple times with horrible results.
Anyways, if not an answer, I'm sure a clue or example would get me going.
Put single quotes around your expressions when they contain shell metacharacters.
|All times are GMT -5. The time now is 03:27 AM.|