Changes

Jump to: navigation, search

Tutorial10: Shell Scripting - Part 1

24 bytes added, 10:45, 10 March 2021
KEY CONCEPTS
There are a group of '''special parameters''' that can be used for shell scripting.<br>A few of these special parameters and their purpose are displayed below:<br>'''$*''' , '''“$*”''' , '''"$@"''' , '''$#''' , '''$?'''
<br><br>
=== Command Substitution / Math Operations ===
<span style="font-family:courier;font-weight:bold">file $(ls)<br>mail -s "message" $(cat email-list.txt) < message.txt<br>echo "The current directory is $(pwd)"<br>echo "The current hostname is $(hostname)"<br>echo "The date is: $(date +'%A %B %d, %Y')"<br>
<br><br>
'''Math Operations:'''
[[Image:math-op.png|thumb|right|275px|Common Math Operator Symbols.]]
50
</pre>
<br><br>
===Using Control Flow Statements in Shell Scripts===
13,420
edits

Navigation menu