Search Results

Search: Posts Made By: Batsies
4,327
Posted By Batsies
Solved my problem, with a Case: case...
Solved my problem, with a Case:

case $MONTH_TO_PROCESS in
Jan) echo "Valid" ;;
Feb) echo "Valid" ;;
Mar) echo "Valid" ;;
Apr) echo "Valid" ;;
May) echo "Valid" ;;
Jun) echo "Valid" ;;
Jul)...
4,327
Posted By Batsies
Validate long date format in If statement
Hi,

I want to validate if the given input is a valid month (written in long month format)

Jan / Feb / Mar / Apr / May / Jun etc etc

This is what I've got with || (or statements):

...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy