Ok I am a PC/Network technician at a local energy company, the how or why isn't really important, but I am a linux amatuer and I need to know what these scripts mean.
If someone could explain these two scripts to me in a detailed manner, line by line detail would be nice. This will help me immensely in my job, thanks!
Last edited by methyl; 02-28-2012 at 09:27 AM..
Reason: remove microfont, add code tags
Just a tip, become familiar with the "man" command, which shows you the manual page for a command i.e :
to learn about the date command and its options. Of course these days you can ask the google too. When I was learning I did what you are doing, taking an existing script and studying it line by line, doing a man and reading about each command I was not familiar with. When you learn what it does, add a comment above or to the right of it, like what agama did for you. Keep a copy of your edited script in your own directory for reference. Pretty soon it will start clicking. Then you need to learn the vi editor!
Perusing posts here will be a help too, use the search functionality for a specific question. Believe me, whatever question you have, you will not be the first to ask it. Use a meaningful subject line for your post, you'll get more views and replies, plus future searchers will have a better chance at finding information.
People here are real helpful, but mention the system and shell you are using too when asking a question, it matters. Be thankful there is a resource like this site. Back in the day when I asked a question, the response was usually a gruff "RTFM!"! lol