10 More Discussions You Might Find Interesting
1. 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
2. UNIX for Dummies Questions & Answers
Hi Experts,
I have a date validation script in that i will validate the date for a given format and search in the logs for that date. The script logic is very simple like below.
Validate_Date()
{
is_valid=1
while
do
date_format=$(date "+$1")
echo -e "Please enter the $2 date like... (6 Replies)
Discussion started by: senthil.ak
6 Replies
3. Shell Programming and Scripting
I'm writing a shell script for cleanup of older files from various sub-directories inside a main directory
The structure of directories is as below:
Logs
daily
online
archive
weekly
online
archive... (1 Reply)
Discussion started by: asyed
1 Replies
4. Programming
Hi All,
We need to create the custom function to pass the parameter is date.if it is valid return 1 else 0
return should be 1
select is_date('2012-09-17');
return should be 0
select is_date('2012-79-17');
Thanks (2 Replies)
Discussion started by: bmk
2 Replies
5. Shell Programming and Scripting
hpux. older version. don't have alot of the newer features in some utilities.
How do I verify that a variable starts with the letter A. I would like to make it case insensitive.
Also, if I have a variable that has letters and numbers. I want to change all the lower case letters to upper case.... (2 Replies)
Discussion started by: guessingo
2 Replies
6. Shell Programming and Scripting
File contains below data,how to validate the date using awk command or any command.
date formate is fixed as "YYYYMMDD"
test1|20120405
test2|20121405
output should be:
test1|20120405
Thanks (2 Replies)
Discussion started by: bmk
2 Replies
7. Shell Programming and Scripting
Hi,
I have a script which runs on specific sunday. If that script runs on the sunday i want to execute another script on following wednesday.
I have a log for that server. My wednesday scripts needs to check the sunday run log timestamp and if it matches it should run. Please help.
Thanks,... (1 Reply)
Discussion started by: Krrishv
1 Replies
8. Shell Programming and Scripting
the user have to input the date format in mmddmmhhyyyy (month,date,minutes,hour,year)
i want a shell script to check whether the user has properly input in the above said manner.
kindly advice (2 Replies)
Discussion started by: vkca
2 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
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