Using Grep To Find or Match All Links in an HTML Document
egrep -or "(http(s)?://){1}[^'\"]+" path/to/directory You can further reduce to just return the images by piping again. grep -r src views/ | egrep -o "(mailto|ftp|http(s)?://){1}[^'\"]+" The -r flag is for a recursive directory scan....
Written by Sean Behan on 09/15/2013
Install Sphinx on Ubuntu
It's a pretty straightforward process. Download the source and compile it. There isn't a package for it so here are the commands. wget http://sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz tar xzvf sphinx-0.9.8.1.tar.gz cd sphinx-0.9.8.1/ ./configure...
Written by Sean Behan on 06/17/2012
How to Install Ferret, the Full Text Search Engine with Your Rails Application
Ferret is a full text search engine based on the popular Lucene Engine, which is originally written for Java. There is a great tutorial available here: http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial Assuming you have the plugin installed, act...
Written by Sean Behan on 06/17/2012