advertisement
Forums

The Forum is sponsored by 
 

AAPL stock: Click Here

You are currently viewing the Tips and Deals forum
Sweet!! I just wrote my first Shell Script!
Posted by: microchip13
Date: February 18, 2006 05:39PM
Very cool. Only took me my "Learn UNIX in 24 hours book" and some trial and error.

it's actually worth SOMETHING.

It'll ask for an input file, then how you want to delete it.

1 for rm, 2 for sudo rm -rf 3 to cancel out of it.

It really has no use, but is still pretty cool.

Now to write a new one that does something.

Any suggestions for what it should do?



_______________________________________________________________
Security is just a word. The act of being secure is entirely different.
"...but I think that to make your dream a reality, having a dream itself is a mandatory prerequisite"
From A Book: Walking Through The Impossible

Just because it has two clutches, shifts faster, uses a torque converter or has near-infinite gear ratios, requires less driver intervention and is more efficient doesn't make it better in my opinion.
Save The Manual Transmission
Options:  Reply • Quote
Re: Sweet!! I just wrote my first Shell Script!
Posted by: Guitarman
Date: February 18, 2006 05:42PM
Make coffee?

Help Fred Neitzsche write a movie script?



Options:  Reply • Quote
Re: Sweet!! I just wrote my first Shell Script!
Posted by: C(-)ris
Date: February 18, 2006 07:05PM
I have a slew of shell scripts that make backup copies of folders, notably, mail folders and user folders.
Options:  Reply • Quote
Re: Sweet!! I just wrote my first Shell Script!
Posted by: GrumpyOldMan
Date: February 18, 2006 08:22PM
rm is probably a dangerous command to use to learn scripting...

Options:  Reply • Quote
Re: Sweet!! I just wrote my first Shell Script!
Posted by: wowzer
Date: February 19, 2006 12:39AM
lets see the script!



All I ever really needed to know, I learned from watching Star Trek.
Options:  Reply • Quote
Re: Sweet!! I just wrote my first Shell Script!
Posted by: microchip13
Date: February 19, 2006 09:10AM
I used the script to delete itself. Sorry.

I can post the one I'm working on when I get it.



_______________________________________________________________
Security is just a word. The act of being secure is entirely different.
"...but I think that to make your dream a reality, having a dream itself is a mandatory prerequisite"
From A Book: Walking Through The Impossible

Just because it has two clutches, shifts faster, uses a torque converter or has near-infinite gear ratios, requires less driver intervention and is more efficient doesn't make it better in my opinion.
Save The Manual Transmission
Options:  Reply • Quote
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 534
Record Number of Users: 186 on February 20, 2020
Record Number of Guests: 5122 on October 03, 2020