Find and Replace multiple Unix/Linux Files
Need to do some substitution on multiple files? Try this command:
find ./ -type f -exec sed -i 's/findme/replacewithme/' {} \;
Need to do some substitution on multiple files? Try this command:
find ./ -type f -exec sed -i 's/findme/replacewithme/' {} \;
If you are looking for some excellent linux webhosting, I suggest checking out Dreamhost. They have the best I’ve ever seen!
PHP (4 and 5), perl, RubyOnRails, CGI, MySQL on Debian servers. Doesn’t get much better than that.
Use coupon code LINUXDAVE and you get 50 dollars off ANYTHING.
Check out their plans.
Welcome to Science Tuesday. Every Tuesday I will (well, I might) post some cool science-related fact.
Here’s a good one:
You probably didn’t know (or care) that the population of the world can live within the state boundaries of Texas.
You don’t believe me?
Proof:
Area in sq miles (Texas) 270,000 square miles
Convert this to square feet: 5280×5280=square feet in a square mile = 28,000,000 square feet in a square mile
Multiply the sq feet per sq mile times the number of square miles in Texas:
28,000,000 x 270,000= 7,560,000,000,000
Divide 7,560,000,000,000 by the population the earth 6,000,000,000
= 1260 sq. feet per person
That is the size of a class room for every person in the world. Brilliant!
This also works that every person in the world can get a 4×4 square and fit in
Rhode Island.
Why would you want to live like this in either of these states? I have no idea. But it is possible!
This summer, I got a chance to see the American premiere of Philip Glass’ “Orion”.
This event was hosted at the beautiful Ravinia:
![]()
The concert was wonderful. There were more instruments that I couldn’t name than ones I could present. I even got Philip Glass to sign a CD for me!
CVS, or the Concurrent Versioning System, allows groups of people (mostly developers) the ability to maintain and document changes in code for shared projects.
If you don’t have time to read the large, but well written CVS Admin Manual, and aren’t jumping on the Subversion bandwagon quite yet, try these simple steps to get going in cvs securely over ssh:
mkdir /w/cvs
chmod 2770 /w/cvs
groupadd cvs
chown root:cvs /w/cvs
cvs -d /w/cvs init
export CVS_UMASK=002
export CVS_RSH=ssh
Now Set the CVSROOT:
export CVSROOT=:ext:username@hostname:/w/cvs
cd /home/user/someproject
cvs -d /w/cvs import -m "New Project Import" project someproject release
The -m will add the “New Project Import” as a comment to your action. You can view these by doing this:
cvs -l somefile
I’ve used cvs for a number of years. Here are some tips that I wish someone would have told me when I started:
cvs update on a regular basis. Do it before you start working on ANYTHING. It will save you the headache of merging code at some point.
Here is a crazy video of a crazy game. Chu Chu Rocket for Dreamcast. It WILL make your mind bleed.
I present to you, the Chu Chu Rockets lyrics:
ChuuChuu Roketto!
Nezumi wo tasukeru
ChuuChuu Roketto!
Neko wa kowai
ChuuChuu Roketto!
Roketto sugoi
Zu ba ba ba ba!!
Chu Chu Rockets Commercial 1.86MB
Shake it.
Shake it.
Shake it like a Polaroid picture!
Charlie Brown, Snoopy and the rest of the Peanuts gang dances to Hey Ya! by Outkast.