LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Simple Question.... (https://www.linuxquestions.org/questions/linux-newbie-8/simple-question-391381/)

SmithSmith123 12-10-2005 05:45 PM

Simple Question....
 
1.How to populate a variable with random numbers of width 4 characters? Bash shell. What is the shortest possible code?



2.How to display the content of the variable to the user using a for loop. I want to display one character at a time. How to walk through each element in a variable? Bash shell.



3.I want to do data input validation to make sure that the user enters 4 numeric values to my prompt. How to enforce that. Bash shell.

Thank you,
Smith

IBall 12-10-2005 09:19 PM

This looks like homework to me...

--Ian

Charred 12-10-2005 11:08 PM

http://www.linuxquestions.org/linux/rules.html
I quote:
Quote:

Do not expect LQ members to do your homework - you will learn much more by doing it yourself.


All times are GMT -5. The time now is 03:19 PM.