10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
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. What is on Your Mind?
Hi folks,
I new to shell script .
I want to know how to validate a String as valid date
example:
20150712 ---> valid date
20160524-->valid
201605T12-->invalid date
12341234--->invalid date
we need to valid string( yyyymmdd) to date in SunOS 5.10
please give some idea to validate... (9 Replies)
Discussion started by: srinadhreddy27
9 Replies
3. UNIX for Dummies Questions & Answers
HI,
i have to do some file validations on which i am receving daily.could any one please let me know how we can able to do validations on below scenarios
1) On Date column Ex If i am receving date in format of YYYYMMDD---- 20141118 --- here i have to check the date value 20141142 if the... (7 Replies)
Discussion started by: bhaskar v
7 Replies
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
Hey people, I got small little error which says I entered too many argument in the if else list.
The stock contains a list of information.
The 4th field consist of the quantity available, so I'm trying to alert the user that the stock is less than 3 and needed to restock.
Is this the correct way... (7 Replies)
Discussion started by: aLHaNz
7 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
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
8. 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
9. Shell Programming and Scripting
Hi
I have below file with 3 rd column as date ....i want to make 3 column to mm/dd/yyyy .
in the below file 2 row date is like 1/23/1994 so i want to append '0'
to month i,e. 01/23/1994 and in the 3 row date is like 6/4/1994 ---so i want this to 06/04/1994
Source:... (1 Reply)
Discussion started by: satyam_sat
1 Replies
10. Shell Programming and Scripting
Hello People
I have the following file.csv:
date,string,float,number,boolean
20080303,abc,1.5,123,Y
20080304,abc,1.2,345,N
20080229,nvh,1.4,098,Y
20080319,ugy,1.9,586,N
20080315,gyh,2.4,345,Y
20080316,erf,3.1,932,N
I need to filter the date field where I have a data bigger than I... (1 Reply)
Discussion started by: Rafael.Buria
1 Replies