GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Question for LINUX pros (https://gfy.com/showthread.php?t=106609)

web4x 02-10-2003 06:41 PM

Question for LINUX pros
 
I have a 1GB large file on my apache server and would like to extract only the URLs out of this file.

What's the best way to do it?

echo465 02-10-2003 06:48 PM

grep http filename

?

NetRodent 02-10-2003 06:55 PM

That would depend on the format of the file. What other data is in the file besides urls? Are the urls all properly formated or do they sometimes break to the next line?

fletcher 02-10-2003 07:22 PM

cat filename | tr '[ "<>]' '\12' | grep -e 'http\:\/\/'


All times are GMT -7. The time now is 09:38 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123