Visit Our UNIX and Linux User Community

Need help with text validation

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Need help with text validation
# 1  
Old 08-27-2009
Need help with text validation


I am posting this to get some help from expert users. Any idea is appriciated.

Thank you!

Previous Thread | Next Thread
Test Your Knowledge in Computers #1011
Difficulty: Easy
The number 128 in base 10 equals 10000000 in base 2.
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Validation using While and IF

I am learning Shell scripting on own. I am trying to do an assignment to get details from the user like username their individual marks ,DOB and send a report in mail with the Details calculated like total and average. validate_marks() { local Value=$1 if && then return 0 else... (1 Reply)
Discussion started by: JayashreeRobin
1 Replies

2. Shell Programming and Scripting

Value validation

Hi All I am trying to validate a value using if condition requirement is need to check whether its a valid numeric value the input contains ( space, #N/A and negative and positive decimal values and Zeros) if it contains the space, I need to display the error message as space ... (15 Replies)
Discussion started by: tsurendra
15 Replies

3. Shell Programming and Scripting

Validation of Text field while Click on submit button

I am using Perl CGI. I have created some text fields and getting those values. But i want if user leave the text field blank when he click on submit button then instead of run a script it should give a popup. Please any body suggest me something..??? (0 Replies)
Discussion started by: Navrattan Bansa
0 Replies

4. Shell Programming and Scripting

File validation

Hello, File contains 1,3 and 5 are required columns. it's working use this command. awk -F\| '$1 && $3 && $5' test1.txt > test2.txt How can use this unix programming.while using runnign this scirpt,it's raising the error. awk: ^ syntax error #!/usr/bin/ksh `awk -F\| '$1 &&... (3 Replies)
Discussion started by: bammidi
3 Replies

5. Shell Programming and Scripting

Name validation

Hi All, I need to write a small piece of code to check the following. name should contain (A-Z), spaces, hyphens & apostrophes I need to generate regular expressions for the same. Please help me out as i am not familiar with regular expressions. (1 Reply)
Discussion started by: lifzgud
1 Replies

6. Shell Programming and Scripting

Validation help

Hi, I am new to Unix shell scripting and need help to add some validation to an existing script. I've made a script that takes two argument (input) but I want the script to display an error message when nothing (null) is entered. So far I managed to validate the fist argument but fail to... (2 Replies)
Discussion started by: zen10
2 Replies

7. UNIX for Dummies Questions & Answers


I'm kinda new in shell scripting. How do i validate an input from a user to conform to requirement. For example, echo "Enter First Name: " read FName echo "Enter Date of Employment (dd/mm/yyyy): " read DoE If the user enters data that is alphanumeric, it accepts it. I hope i've... (1 Reply)
Discussion started by: Allenzo
1 Replies

8. Shell Programming and Scripting

Date Validation again

I want a sample Date validation script using if loops. The script should first compare "year".If the year is lesser than the current year,It should go for "month" checking. I have the script that splits the date into year,month and date.I want only the checking part. My if loop checking is not... (4 Replies)
Discussion started by: dave_nithis
4 Replies

9. UNIX for Advanced & Expert Users

Filename Validation

I'm going through a script someone wrote and has left the company. I've a file_name -> s31-d173-lookup-20060502111140-sr In the ksh this is a validation : if |)-(*)-(*)---(|-)-sr)) ]]; The validation for the above file_name fails. Any idea why and what is file naming convention the... (2 Replies)
Discussion started by: F-1
2 Replies
dasdseq(1)						      General Commands Manual							dasdseq(1)

dasdseq - Hercules DSORG=PS retrieval command SYNOPSIS
dasdseq [options...] image [sf=shadow] filespec dasdseq [-debug] [-expert] [-ascii] image [sf=shadow] [attr] filespec [debugopts] [ascii] DESCRIPTION
Hercules command to retrieve a DSORG=PS (sequential) dataset from CKD/CCKD DASD. The dataset is presumed to be encoded in EBCDIC. The second form of the command is for 'expert mode' users, and allows more advanced access to data on the DASD image. OPTIONS
The following options are used to specify dasdseq behavior. Surround each option by blank(s). Options are divided into three categories: required, optional, and expert mode operands. Required operands image specifies the Hercules CKD/CCKD DASD filename (sometimes referred to as the DASD image file) filespec dataset name of the file to retrieve. Case insensitive, converted to upper case for searching VTOC on image DASD volume. Optional operands sf=shadow For CCKD images which also use shadow files, specifies the [path/]filename of the shadow file. Note the sf=, which must be present for this option. -ascii convert the output file to ASCII (from EBCDIC). Additionally, trailing blanks are trimmed. The 'ascii' option (no leading dash) is depre- cated, and may be removed in a future release. Expert mode operands All expert mode operands are considered to be experimental. dasdseq [-debug] [-expert] [-ascii] image [sf=shadow] [attr] filespec [debugopts] -debug Additional debug options are displayed. Specifying -debug will (eventually) display dataset extent information. attr dataset attributes (only useful with -abs) [-recfm fb] [-lrecl aa] -recfm designates RECFM, reserved for future support fb - fixed, blocked (only RECFM currently supported) -lrecl designates dataset LRECL aa - decimal logical record length (default 80) Blocksize need not be specified; dasdseq handles whatever block size comes off the volume. filespec composed of the following sub-operands, in the following order: heads, abs, filename. -heads xx defines # tracks per cylinder on device; xx = decimal number of heads per cylinder on device -abs cc hh tt [...] [-abs cc hh tt] -abs indicates the beginning of each extent's location in terms of absolute dasd image location. cc - decimal cylinder number (relative zero) hh - decimal head number (relative zero) tt - decimal number of tracks in extent When -abs is specified, each -abs group specifies one dataset extent. For multi-extent datasets, -abs groups may be repeated as needed, in the order in which the dataset's extents occur. A maximum of 123 extents are supported. With -abs, no VTOC structure is implied; a F1 DSCB will not be sought. Dasdseq will frequently report 'track not found in extent table' (along with a message from fbcopy about rc -1 from convert_tt) due to potentially missing EOF markers in the extent, and the fact that the F1 DSCB DS1LSTAR field is not valid. Check your output file before you panic. Fbcopy -abs ignores EOF, in case you are attempting to recovery PDS member(s) from a damaged dasd vol- ume, preferring to wait until all tracks in the extent have been processed. Tracks containing PDS members may have more than one EOF per track. Expect a lot of associated manual effort with -abs. When -abs is -not- specified, filename specifies the MVS DSORG=PS dataset on the volume. The dasd image volume containing the dataset must have a valid VTOC structure, and a F1 DSCB describing the dataset. filename will be the filename of the output file in the current directory; output filename in the same case as the command line filename. debugopts Produces debugging output, refer to the source code. verbose [x [y [z]]] verbose debug output level (default = 0 when not specified). Higher numbers produce more output. x main program (default = 1 when verbose specified) y copyfile + showf1 z dasdutil SEE ALSO
dasdpdsu for DSORG=PO datasets cckd(4) for CCKD DASD which describes the Hercules CCKD DASD facility. the Hercules emulator homepage. HISTORY
2003-03-10 originally written by James M. Morrison 2003-03-10 dasdseq(1)

Featured Tech Videos