Read input from Keyboard, do not proceed if no input


Login or Register to Reply

 
Thread Tools Search this Thread
# 8  
As an addendum...

You will need to work out the error checking for each important field.

For example to gather the email address somebody.something@someaddress.extension you will have to check that it has a valid format. Not to forget that once passed it has to be checked for email validity too.
The above example is valid although does not exist but somebody.somethinATsomeaddress.extension is not.

Anything requiring a number only will have to be checked too although this should be staright forward.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
How to get input from keyboard with watch?
bacarrdy
Hello, i`m trying to create an network monitoring script and i dont know how to make affect that script by pressing an key from keyboard and that script runs not in while or for or any other loop, but with bash command watch for example: i have created an file (for example check) with content...... Shell Programming and Scripting
0
Shell Programming and Scripting
Read input files and merge them in given order and write them to input one param or one file
hyd1234
Dear Friends, I am looking for a shell script to merge input files into one file .. here is my idea: 1st paramter would be outfile file (all input files content) read all input files and merge them to input param 1 ex: if I pass 6 file names to the script then 1st file name as output file...... Shell Programming and Scripting
4
Shell Programming and Scripting
How to read user keyboard input inside the case?
femchi
I need to Write a shell script that allows some system-administration tasks to be preformed automatically from a menu-driven interface. with automated following tasks: Copy directory tree Delete files or directories Output Information (this part is done ) *Copy directory tree The “Copy...... Homework & Coursework Questions
2
Homework & Coursework Questions
Keyboard input question
biopulse
How would I change up a script that currently has something like: bash script echo what's 1 2 3 4? then using read 1 2 3 4 I type 1 2 3 4. so in the script i can do stuff like echo $1 $2 $3 $4 and such... i was just doing echo "1 2 3 4"|bash script But was wondering how could I...... Shell Programming and Scripting
5
Shell Programming and Scripting
Keyboard Input
cpaquette
Does anyone know how do you determine the user idle time of STDIN in order to log the user out for being idle too long. I would like to write a c program to do this but I it is not clear upon how to determine idle time from keyboard input. I have found that the "who.c" source file uses the last...... Programming
4
Programming