Transfered from Linux Config:
I have a question for my bash scripting.
Can you help me by this script?
(Modify countdown such that it prompts user for a starting value, and counts down from there.
Write a script called countdown2 that accepts the initial value as a command-line argument. For example, the command and its output might look like the following.
$ ./countdown2 12
Probably the easiest way to do count reverse in bash is to use while loop. Save this script as countdown2, make it executable and run:
# bash while loop
while [ $COUNT -gt 0 ]; do