Tuesday, July 18, 2006

Search html files on your (unix) Webserver for a specific string of text

$ find -name '*htm*' -exec grep 'string to find' {} \; -print

Listen to this article Listen to this article

Simple shell script to remove spaces from file names

#! /usr/bin/bash
for file in *\ *;
do
mv "$file" "${file// /_}"
done

comes in handy for prepping pdf docs for the Web

Listen to this article Listen to this article