Computer Science Software, hardware, computational theory, cool peripherals, and emerging cybernetic technologies


Advertisement (please log in or register to remove this ad)
Reply
 
LinkBack Thread Tools
  #11 (permalink)  
Old 10-20-2005, 04:43 AM
rockytriton's Avatar
Explaining
 
Join Date: Apr 2005
Location: Antarctica
Posts: 916
rockytriton is just really nicerockytriton is just really nicerockytriton is just really nicerockytriton is just really nicerockytriton is just really nice
Send a message via AIM to rockytriton
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
  #12 (permalink)  
Old 10-20-2005, 03:28 PM
alexander's Avatar
Resident USSRian
Points: 69,669, Level: 100 Points: 69,669, Level: 100 Points: 69,669, Level: 100
Activity: 63% Activity: 63% Activity: 63%
Hypography Staff Member
Administrator
Gallery Curator
Dev Team Member
 
Join Date: May 2004
Location: Just before 0xAA55
Posts: 3,964
alexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant future
Send a message via AIM to alexander
Re: Your favorite Linux command/program

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

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Reply With Quote
  #13 (permalink)  
Old 10-20-2005, 07:53 PM
rockytriton's Avatar
Explaining
 
Join Date: Apr 2005
Location: Antarctica
Posts: 916
rockytriton is just really nicerockytriton is just really nicerockytriton is just really nicerockytriton is just really nicerockytriton is just really nice
Send a message via AIM to rockytriton
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
  #14 (permalink)  
Old 10-21-2005, 03:38 PM
alexander's Avatar
Resident USSRian
Points: 69,669, Level: 100 Points: 69,669, Level: 100 Points: 69,669, Level: 100
Activity: 63% Activity: 63% Activity: 63%
Hypography Staff Member
Administrator
Gallery Curator
Dev Team Member
 
Join Date: May 2004
Location: Just before 0xAA55
Posts: 3,964
alexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant future
Send a message via AIM to alexander
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
__________________

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Reply With Quote
  #15 (permalink)  
Old 10-21-2005, 06:29 PM
rockytriton's Avatar
Explaining
 
Join Date: Apr 2005
Location: Antarctica
Posts: 916
rockytriton is just really nicerockytriton is just really nicerockytriton is just really nicerockytriton is just really nicerockytriton is just really nice
Send a message via AIM to rockytriton
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
  #16 (permalink)  
Old 10-21-2005, 06:50 PM
alexander's Avatar
Resident USSRian
Points: 69,669, Level: 100 Points: 69,669, Level: 100 Points: 69,669, Level: 100
Activity: 63% Activity: 63% Activity: 63%
Hypography Staff Member
Administrator
Gallery Curator
Dev Team Member
 
Join Date: May 2004
Location: Just before 0xAA55
Posts: 3,964
alexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant future
Send a message via AIM to alexander
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...
__________________

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Reply With Quote
  #17 (permalink)  
Old 10-22-2005, 06:37 AM
rockytriton's Avatar
Explaining
 
Join Date: Apr 2005
Location: Antarctica
Posts: 916
rockytriton is just really nicerockytriton is just really nicerockytriton is just really nicerockytriton is just really nicerockytriton is just really nice
Send a message via AIM to rockytriton
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
  #18 (permalink)  
Old 10-22-2005, 09:53 AM
alexander's Avatar
Resident USSRian
Points: 69,669, Level: 100 Points: 69,669, Level: 100 Points: 69,669, Level: 100
Activity: 63% Activity: 63% Activity: 63%
Hypography Staff Member
Administrator
Gallery Curator
Dev Team Member
 
Join Date: May 2004
Location: Just before 0xAA55
Posts: 3,964
alexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant future
Send a message via AIM to alexander
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
__________________

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Reply With Quote
  #19 (permalink)  
Old 10-22-2005, 10:01 AM
alexander's Avatar
Resident USSRian
Points: 69,669, Level: 100 Points: 69,669, Level: 100 Points: 69,669, Level: 100
Activity: 63% Activity: 63% Activity: 63%
Hypography Staff Member
Administrator
Gallery Curator
Dev Team Member
 
Join Date: May 2004
Location: Just before 0xAA55
Posts: 3,964
alexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant futurealexander has a brilliant future
Send a message via AIM to alexander
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)
__________________

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Reply With Quote
  #20 (permalink)  
Old 10-22-2005, 10:03 AM
Killean's Avatar
Points: 8,846, Level: 40 Points: 8,846, Level: 40 Points: 8,846, Level: 40
Activity: 0% Activity: 0% Activity: 0%
Hypography Staff Member
Administrator
Dev Team Member
 
Join Date: Dec 2004
Location: ウィニペグ, カナダ
Posts: 723
Killean is just really niceKillean is just really niceKillean is just really niceKillean is just really niceKillean is just really nice
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
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
Advertisement


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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

» Advertisement
» Latest Science News
Powering the planet
imageNSF-funded Chemical Bonding Center project provides a new approach for harnessing the sun's energy
Read » | 0 comments

DNA Barcodes: Are They Always Accurate?
imageBrigham Young University (BYU) study questions the reliability iof some results.
Read » | 0 comments

Make Contact: Ask an Astronaut on the Space Station a Question
imageAstronaut Greg Chamitoff, aboard the International Space Station 220 miles above Earth, is ready to take your questions.
Read » | 0 comments
» Current Poll
Do U text?
No - 25.00%
6 Votes
Yes; < 6 messages/day - 50.00%
12 Votes
Yes; 6-15 messages/day - 12.50%
3 Votes
Yes; 16 to 43 messages/day - 8.33%
2 Votes
Yes; > 43 messages/day - 4.17%
1 Vote
What? - 0%
0 Votes
Total Votes: 24
You may not vote on this poll.
» Random Social Groups
Astronomy Picture of the Day
9 members | 26 pictures
Star Trek
3 members | 0 pictures
Photographers
10 members | 66 pictures
Gardening
12 members | 46 pictures
Hypography jugglers
5 members | 7 pictures
» View All Groups
Advertisement

All times are GMT -8. The time now is 05:45 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright © 2000-2008 Hypography
Part of the Hypography - Science for Everyone Network

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67