Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Read input from Keyboard, do not proceed if no input

Shell Programming and Scripting


Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 02-26-2016
wisecracker's Unix or Linux Image
wisecracker wisecracker is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 24 May 2017, 1:00 PM EDT
Location: Loughborough
Posts: 1,200
Thanks: 360
Thanked 320 Times in 250 Posts
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.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to get input from keyboard with watch? bacarrdy Shell Programming and Scripting 0 04-01-2015 08:11 PM
Read input files and merge them in given order and write them to input one param or one file hyd1234 Shell Programming and Scripting 4 02-11-2014 10:59 AM
How to read user keyboard input inside the case? femchi Homework & Coursework Questions 2 11-08-2012 02:13 AM
Keyboard input question biopulse Shell Programming and Scripting 5 11-29-2010 12:41 AM
Keyboard Input cpaquette Programming 4 04-07-2008 01:44 PM



All times are GMT -4. The time now is 01:15 AM.