![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Logic Studio, Logic Express 8: Where loops get installed | iBot | OS X Support RSS | 0 | 05-13-2009 03:00 AM |
| Script should flow after ftp --Urgent | kaaakrishna | UNIX for Advanced & Expert Users | 4 | 06-20-2008 12:53 AM |
| Flow Chart | sabari | High Level Programming | 1 | 04-12-2006 01:57 AM |
| dilemma in control flow | tej.buch | High Level Programming | 2 | 02-10-2006 10:41 AM |
| Flow of Unix System | spanglerbrod | Security | 1 | 05-21-2002 03:11 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||||
|
I'm sure there are pages which include helps for you.
I have done something, but language is mostly finnish. Karjalan ATK-Awot Oy Ofcourse you can look those pages using Googles translator Google Kääntäjä if command I have done page using my english. Why ? If has used so often like programlanguage if. If command is different. Same situation with ex. case. Karjalan ATK-Awot Oy Big idea is to understand that everyline is commandline = works same way even command is builtin if, case, ... or something else like date, ls, rm, ... - filename generation - pipe - io-redirection - argument delimeter !!! (ex. if ...) - ... Example Code:
ls * echo * if cp x y 2>/dev/null ; then print ok else print not so good fi |
|
|||||
|
Quote:
Second, "scripts" are usually executed in order the lines appear in the program, with the exception of things like loops. SH and derivatives (bash, zsh) handle functions, and these functions need to be defined before they are invoked. Other than that, it's pretty straight-forward. *Sigh* then again, I've been coding since I was 10. Third: You must understand Binary Logic (aka, Boolean Logic). The keys are understanding the basic operators: OR, AND, NOT. If you don't understand these correctly, you'll have a hard time. In most modern languages, including shell scripting, perl, and C, the operands can be expressions which means in the case of shell scripting, a program that returns an exit code. So fourth, you have to understand that programs return exit codes. If the exit code is numerically 0, that means true. (0 for true is known sometimes as "negative logic"). If you are visually oriented, this tutorial might help. I googled around and found this video which might help: YouTube - Prelude to Computer Science - 6: Binary Logic and YouTube - Prelude to Computer Science - 7: Logic Gates |
|
|||||
|
thanks for the reply, see the main problem was, during my quest to understand logic and flow control better, i didnt really know what term/s to search for. boolean...thats right, now i remember it from teh days of yore.
the links have been helpful, its just up to me as to what i do with them. one more thing, is it ok if i PM one of you when im stuck trying to understand a concept or code. id rather run to a single person after i cant find the answer whilst RTFM and dont want to waste space posting such a small easy to answer problem on the boards. thanks again guys! |
|
|||||
|
Quote:
Quote:
Just reply here, and I'll see the post. |
|
|||||
|
Quote:
so if thats the case, then they shall be posted, i just didnt want to get scolded for not looking for the answers hard enough on my own. |