"Taking a LiveFire Labs' course is an excellent way to learn
Linux/Unix. The lessons are well thought out, the material is
explained thoroughly, and you get to perform exercises on a real
Linux/Unix box. It was money well spent."
LiveFire Labs' UNIX and Linux Operating System Fundamentals
course was very enjoyable. Although I regularly used UNIX systems
for 16 years, I haven't done so since 2000. This course was a
great refresher. The exercises were fun and helped me gain a real
feel for working with UNIX/Linux OS. Thanks very much!"
[livefire@hawk] # cat display_info
ps -f
print "The value of x is: $x"
[livefire@hawk] #
[livefire@hawk] # x=50
[livefire@hawk] # print $x
50
[livefire@hawk] # ps -f
UID PID PPID C STIME TTY TIME CMD
livefire 455 453 0 13:27:20 pts/2 0:00 -ksh
[livefire@hawk] #
[livefire@hawk] # display_info
UID PID PPID C STIME TTY TIME CMD
livefire 540 455 0 15:11:09 pts/2 0:00 -ksh
livefire 455 453 0 13:27:20 pts/2 0:00 -ksh
The value of x is:
[livefire@hawk] #
[livefire@hawk] # . display_info
UID PID PPID C STIME TTY TIME CMD
livefire 455 453 0 13:27:20 pts/2 0:00 -ksh
The value of x is: 50
[livefire@hawk] #
Read the NEXT article in this series - Subshells & Subshell Grouping - Part II