Go Back   Science Forums
View Single Post
Old 10-20-2005   #11 (permalink)
rockytriton's Avatar
rockytriton
Explaining


Location:
Antarctica
 
rockytriton is just really nicerockytriton is just really nicerockytriton is just really nicerockytriton is just really nice
Send a message via AIM to rockytriton
 



Not Ranked  0 score     
Re: Your favorite Linux command/program

ok, here's my cool little script for replacing versions of my .jar files in all config files and scripts:

Code:
#!/bin/sh

SCRIPTS=`find . -name "*.*" -exec grep -l "$1" {} \;`

for file in $SCRIPTS
do
        echo "Editing $file...";
        (cat $file; echo '') | sed 's/'$1'/'$2'/g' > ${file}.tmp;
        sleep 1;
        mv ${file}.tmp $file;
done;
oh, and by the way, here's a link to my unix shell scripting tutorial if anyone cares to check it out: http://www.dreamsyssoft.com/unix-she...g/tutorial.php


----------------
/home/God $ cd projects/universe
/home/God/projects/universe $ make

/home/physicist $ cat /home/God/projects/universe/main.c
ksh: /home/God/projects/universe/main.c: Permission Denied.
Reply With Quote
 
» Advertisement
» Current Poll
Who's the sexiest man alive? Johnny Depp or Robert Pattinson?
Johnny Depp - 27.27%
3 Votes
Robert Pattinson - 0%
0 Votes
Someone else (please specify) - 45.45%
5 Votes
I'm too macho to think a guy is sexy - 27.27%
3 Votes
Total Votes: 11
You may not vote on this poll.


All times are GMT -8. The time now is 07:34 AM.

Hypography?

Hypography [n.]: A combination of "hyperlink" and "bibliography" - ie, a list of links to electronic documents. Comparable to discography and bibliography, but not cartography.

We have been online since May 2000, and aim to be the best place to find and share science-related content of all kinds.

Share the love!

Please add more science to your life. Use our RSS feeds on your blog, your portal, or your favorite feedreader!


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000-2009 Hypography
Part of the Hypography - Science for Everyone Network