Modify the prargs program to precede each argument by its number. Thus, typing

prargs a 'b c' d

should give the following output:
1: a
2: b c
3: d

There are a number of ways to solve this, but here's a quick solution:
count=1

while [ "$#" -ne 0 ]
do
echo "${count}: $1"
shift
count=$(( $count + 1 ))
done

Computer Science & Information Technology

You might also like to view...

A(n) ________ is a web page that uses online collaborative editing tools to build its content

Fill in the blank(s) with correct word

Computer Science & Information Technology

What are the advantages and disadvantages of an email program (such as Eudora or Outlook) that automatically applies and removes protection to email messages between sender and receiver?

What will be an ideal response?

Computer Science & Information Technology