What are the basic shell scripting commands?
Asked by reamonn
(42 points)
on Aug 5, 2009
under Internet & Computers
1 answers
What are the basic shell scripting commands?

![]() Teodoro (72 points) |
on Aug 5, 2009Use any editor like vi or mcedit to write shell script. You can also use the GNOME or KDE environment to your advantage and use the notepad available with them. After writing shell script set execute permission for your script as follows This will set read write execute(7) permission for owner, for group and other permission is read and execute only(5). Execute your script as: Examples: NOTE: In the last syntax ./ means current directory. .(dot) means execute given command file in current shell without starting the new copy of shell. To print or access the variable use the following syntax Use the following syntax perform arithmetic operations. Note that expr 10 * 3 - Multiplication use * and not * since it’s a wild card. The if condition: The if...else...fi: The test command: The case command: The for command: for I in 1 2 3
The while command: The until command: |
|

