Click on question for one solution.

Q1. Write while loop to add 2 numbers.

Q2. Write a listing for loop that lists only regular files in current directory.

Q1. Write a listing for loop that counts number of characters in each argument on the command line. Make sure quoted string are treated as a complete string.

Q1. Write an indexed for loop that pings the 3rd through the 15th IP on 10.158.56.

Q1. Write a function that reports on any filenames with spaces in them.