HELP with CORRECTING script...
Asked by
mylnx
When I run the following program...
#!/bin/bash
printf "\n"
RANDOM='DATE +%S'
let NUM=( $RANDOM % 59 + 1 )
printf $NUM
I get the number printed before my prompt.
user> chmod 777 PB.sh
user> ./PB.sh
13user> ./PB.sh
6user> gedit PB.sh
user> ./PB.sh
27user> gedit PB.sh
user> ./PB.sh
1user>
Please help me.
Thanks in advance...
mylnx
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask mylnx for more information if necessary.
To post a message you must log in.