This works pretty well:
But I admit I don't get the $1=$1.
tcsh, etc:
foreach file (`find , -name "* *"`)
mv "$file" "`echo $file | awk 'BEGIN {OFS="-"} $1=$1'`"
end
bash, etc:
find . -name "* *"|while read file
do
mv "$file" "`echo "$file"| awk 'BEGIN {OFS="-"} $1=$1'`"
done
Tuesday, December 29, 2009
Wednesday, December 23, 2009
Wednesday, December 16, 2009
My Current Favorite TED Talk
Jonathan Haidt on the moral roots of liberals and conservatives. (or: Why Everyone Wants To Go To Applebee's; Just No One You Know.)
A very interesting talk. Significantly outside the box. Interesting approach to the following:
A very interesting talk. Significantly outside the box. Interesting approach to the following:
- Evolution of morality.
- How can morality be usefully parsed?
- What is morality good for?
Subscribe to:
Posts (Atom)