10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
We have a job which we need to run on daily bases, before loading data in a table we need to validate whether the input file is received or not.Inputfile formatsrc_sps_d_Call_Center_Reporting_yyyymmdd_01.dat SPS-Service nameYYYY-yearMM-MonthDD-dayLike above we will get n number of files for... (1 Reply)
Discussion started by: katakamvivek
2. Shell Programming and Scripting
if (!-d $Input_filename && ! -e $Input_filename)
print "USAGE: Please enter '$ABCD/def/dsed.txt' as an arguement \n";
1. Input Is suppose to be something like "$ABCD/def/dsed.txt".
if the input is wrong the script should throw an ERROR message.... (2 Replies)
Discussion started by: Rashid Khan
3. Shell Programming and Scripting
Is there an easy way to validate an input field size. Let us say a script is asking to enter 10 digits mobile number, how do I write a script to validate it is numeric and is 10 digits in length? I just need an easy way w/o using looks ...etc. Is there such a away ?
Here is what I have so far... (6 Replies)
Discussion started by: mrn6430
4. Shell Programming and Scripting
I wonder how I can know if the input parameters to the script are numbers or text
Thanks (11 Replies)
Discussion started by: Gengis-Kahn
5. Shell Programming and Scripting
This will most likely be a simple answer.
Currently I have a situation where my script will be sent various options:
-o1 -o2 -firstname.lastname@example.org
Now, if I want to run a certain command based on the option I am sent, I am doing the following.
for o in $(echo $options)
... (3 Replies)
Discussion started by: stuaz
6. UNIX for Dummies Questions & Answers
Hey, im trying to validate a user input and need some help. The input needs to be just a single letter. Im using a case to so this eg:
case $answer in
*) echo "OK"
*) echo "This is a number"
*) echo... (2 Replies)
Discussion started by: 602chrislys
7. Shell Programming and Scripting
the user inputs names that have to be inside square brackets
I want to check if the user puts the brackets and if not ask him to re-enter the names (9 Replies)
Discussion started by: DDoS
8. Shell Programming and Scripting
I have a shell script(K shell) which takes a date as input.
i want the input to be in DD-MM-YYYY format.
Can i enforce such a format of input string using just one line of code?
do i need to parse the input date into different components and test them using Case statements... (2 Replies)
Discussion started by: rajugp1
9. Shell Programming and Scripting
How would i validate value of a variable whether it is number,date or string
Thanks in advance
Sas (5 Replies)
Discussion started by: SasDutta
10. Shell Programming and Scripting
This may have been addressed already somewhere, however I am looking for the easiest/shortest way to validate a response from a user for a file name.
The file name should not have any of the following characters
Further the response should not have any... (2 Replies)
Discussion started by: jerardfjay