Go Back   Science Forums > Physical Sciences Forums > Computer Science and Technology
Reply
 
LinkBack Thread Tools
Old 10-20-2005   #11 (permalink)
rockytriton's Avatar
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
Old 10-20-2005   #12 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



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

here's my way of doing it:
dispatch-conf
so, um 8 lines vs 1, i win


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

Reply With Quote
Old 10-20-2005   #13 (permalink)
rockytriton's Avatar
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

bash: dispatch-conf: command not found


----------------
/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
Old 10-21-2005   #14 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



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

thats because one, you dont have dispatch conf installed, two you dont have a distro with a package management system therefore you can't install dispatch-conf as far as i can remember its a portage util...

:P pbttt


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

Reply With Quote
Old 10-21-2005   #15 (permalink)
rockytriton's Avatar
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, anyway, I doubt they have a version build for AIX, and anyway, I run it as one line since I wrote it as a shell script, so I still win :P


----------------
/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
Old 10-21-2005   #16 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



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

nope, I do, because i did not have to write a script and it does loads of stuff then blindfully replace stuff in config files, so pbttt I have a more powerful tool that i didnt have to write, and it is one line per execution, and therefore i win.
Actually have a patch for it that makes dispatch-conf a lot more powerful, friend wrote it, allows you to do real cool stuff...


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

Reply With Quote
Old 10-22-2005   #17 (permalink)
rockytriton's Avatar
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, ok, I say we just take out the yard stick and get this over with!
Reply With Quote
Old 10-22-2005   #18 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



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

that would be quite ok, work-wise i win, but still its a nifty script for people to read through
whoever said that bash isnt powerful, must be a fanatic of Bill Gates


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

Reply With Quote
Old 10-22-2005   #19 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



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

another cool tool is pf(which i prefer to iptables, but iptables is all we got in linux ) and snort, also dont forget nmap and ettercap(if netcat is "the swiss army knife" of network security then ettercap is a swiss army knife that makes you coffee in the morning, fixes your car and builds your house for you)


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

Reply With Quote
Old 10-22-2005   #20 (permalink)
Killean's Avatar

Administrator
Dev Team Member

Location:
Winnipeg, Canada
 
Killean is a glorious beacon of lightKillean is a glorious beacon of lightKillean is a glorious beacon of lightKillean is a glorious beacon of light
Send a message via ICQ to Killean Send a message via AIM to Killean Send a message via MSN to Killean Send a message via Yahoo to Killean
 



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

cat
vim
ls -l
cd
emerge -va


----------------
-神恵「争い」癒す
Hypographyのネットワーク管理者

"All that we see or seem, is but a dream within a dream." -Edgar Allan Poe
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Will Linux become the next portable device platform? alexander Computer Science and Technology 0 07-27-2005 04:45 PM
SCO vs IBM results alexander Computer Science and Technology 2 07-14-2005 09:47 PM
Windows better than Linux research alexander Computer Science and Technology 38 05-04-2005 09:06 AM
Adobe Reader released for Linux alexander Science News 0 04-12-2005 06:36 AM
What is your favorite Linux window manager? alexander Computer Science and Technology 4 11-17-2004 06:33 AM

» Advertisement
» Current Poll
Who's the sexiest man alive? Johnny Depp or Robert Pattinson?
Johnny Depp - 30.00%
3 Votes
Robert Pattinson - 0%
0 Votes
Someone else (please specify) - 40.00%
4 Votes
I'm too macho to think a guy is sexy - 30.00%
3 Votes
Total Votes: 10
You may not vote on this poll.


All times are GMT -8. The time now is 08:44 PM.

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.
Search Engine Optimization by vBSEO 3.3.2
Copyright © 2000-2009 Hypography
Part of the Hypography - Science for Everyone Network