LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2005, 06:45 PM   #1
SmithSmith123
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Rep: Reputation: 0
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
 
Old 12-10-2005, 10:19 PM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
This looks like homework to me...

--Ian
 
Old 12-11-2005, 12:08 AM   #3
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 03:03 PM
Simple C++ question oulevon Programming 1 03-21-2005 03:07 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 10:03 PM
a simple question stephenk Linux - Newbie 1 06-01-2003 04:14 AM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 05:08 AM


All times are GMT -5. The time now is 01:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration