Question: create the following script using vi named looper: # ! / bin / bash COUNT = 0 for ( ( ; ; ) ) do
create the following script usingvi named looper:
#binbash
COUNT
for ; ;
do
COUNTexpr $COUNT#Notice the backtick does command substitution
echo The current loop count is : $COUNT
echo CRTLC to stop!#Notice single verses double quotes
done
make the script executable with the chmod command
copy the script to looper using the cp command
execute the above scripts individually and watch them run example:looper
rerun them a second time and CRTLC and CRTLZ during their execution
use the ps command to see their status:ps u would be my choice, what is yours?
TO HAND IN: Take a screen shot for PART
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
