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:
Revision history for this message
michael (yellupcm-gmail) said :
#1
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

What formats will the device play. You can't conciebly expect us to know what formats every device supports.
Think about it....

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

Try ffmulticonverter, to install from terminal type:

sudo add-apt-repository ppa:ffmulticonverter/stable
sudo apt-get update
sudo apt-get install ffmulticonverter python-qt4 unoconv

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.