MacResource
Sweet!! I just wrote my first Shell Script! - Printable Version

+- MacResource (https://forums.macresource.com)
+-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1)
+--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3)
+--- Thread: Sweet!! I just wrote my first Shell Script! (/showthread.php?tid=5000)



Sweet!! I just wrote my first Shell Script! - microchip13 - 02-18-2006

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?


Re: Sweet!! I just wrote my first Shell Script! - Guitarman - 02-18-2006

Make coffee?

Help Fred Neitzsche write a movie script?


Re: Sweet!! I just wrote my first Shell Script! - C(-)ris - 02-19-2006

I have a slew of shell scripts that make backup copies of folders, notably, mail folders and user folders.


Re: Sweet!! I just wrote my first Shell Script! - GrumpyOldMan - 02-19-2006

rm is probably a dangerous command to use to learn scripting...




Re: Sweet!! I just wrote my first Shell Script! - wowzer - 02-19-2006

lets see the script!


Re: Sweet!! I just wrote my first Shell Script! - microchip13 - 02-19-2006

I used the script to delete itself. Sorry.

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