LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LQ Articles Discussion
User Name
Password
LQ Articles Discussion This forum is for the discussion of content posted to the Articles and Editorials section.

Notices


Reply
  Search this Thread
Old 03-09-2006, 02:34 PM   #1
stomfi
Member
 
Registered: Aug 2002
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 35

Rep: Reputation: 15
DISCUSSION: Power to the Users - Part 4


This thread is to discuss the article titled:
Power to the Users - Part 4

Quote:
Power to the Users. Shell Scripting & GUI interfacing for Desktop Users By Stomfi © 2006 Part 4 - Validation, Editing and Dialog Windowing Validation Adding validation to input scripts is used to make sure the user doesn't enter something unwanted. Simple validation was already used in the while loops to make sure the user entered at least one character when the names were input with the test construct:
Code:
[ ${#Varname} -lt 1 ]
which tests for the number of characters in Varname, and returns "true" if there are none. The simple input script doesn't test that the user entered only one name, which is what we want, although it could be a hyphenated name, which is OK.

Last edited by XavierP; 04-01-2006 at 11:15 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Power to the Users - part 3 stomfi LQ Articles Discussion 1 07-29-2006 04:10 AM
DISCUSSION: Power to the Users - part 1 stomfi LQ Articles Discussion 1 04-01-2006 10:05 PM
DISCUSSION: Power to the Users - Part 5 stomfi LQ Articles Discussion 1 04-01-2006 04:35 PM
DISCUSSION: Power to the users - part 2 stomfi LQ Articles Discussion 4 04-01-2006 02:54 AM
DISCUSSION: Power to the Users - part 3 stomfi LQ Articles Discussion 0 02-25-2006 07:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LQ Articles Discussion

All times are GMT -5. The time now is 02:16 AM.

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
Open Source Consulting | Domain Registration