Question: create the following script using vi named looper: # ! / bin / bash COUNT = 0 for ( ( ; ; ) ) do

create the following script usingvi named looper:
#!/bin/bash
COUNT=0
for(( ; ; ))
do
COUNT=`expr $COUNT+1`#Notice the backtick does command substitution
echo The current loop count is : $COUNT
echo ' CRTL-C to stop!'#Notice single verses double quotes
done
4. make the script executable with the chmod command
5. copy the script to looper2 using the cp command
6. execute the above 2 scripts individually and watch them run (example:./looper)
7. rerun them a second time and CRTL/C and CRTL/Z during their execution
8. use the ps command to see their status:ps u would be my choice, what is yours?
9. TO HAND IN: Take a screen shot for PART 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!