Hi,
This is probably a basic UNIX scripting question, but I guess that if you don't ask you never learn!
I'm trying to write a script that does a number of things but I have become stuck on one particular part.
I have a variable which is defined in the script as the result of a search. The variable will either be a time in the following format nn:nn or a time in this format (nn:nn). How can I use an 'IF' statement to echo a success if the variable is the time stamp without the brackets, and echo a fail if the variable is the time in brackets.
cheers
Richard
This is probably a basic UNIX scripting question, but I guess that if you don't ask you never learn!
I'm trying to write a script that does a number of things but I have become stuck on one particular part.
I have a variable which is defined in the script as the result of a search. The variable will either be a time in the following format nn:nn or a time in this format (nn:nn). How can I use an 'IF' statement to echo a success if the variable is the time stamp without the brackets, and echo a fail if the variable is the time in brackets.
cheers
Richard