Search Results

Search: Posts Made By: lakshmikanth
6,215
Posted By lakshmikanth
AlphaNumeric String Operations
Hi :)

I am writing a ksh

I have a string of general format

A12B3456CD78

the string is of variable length

the string always ends with numbers (here it is 78.. it can be any number of...
14,853
Posted By lakshmikanth
Thanks a lot guys for ur help :)
Thanks a lot guys for ur help :)
14,853
Posted By lakshmikanth
to check if a string has only digits
Hi guys,

I am not very experienced in writing ksh scripts and I am trying to write a piece of code that indicates if a given string contains only digits and no alphabet (upper or lower case). If...
3,692
Posted By lakshmikanth
Thanks Guys. I got the idea :) .
Thanks Guys. I got the idea :) .
3,692
Posted By lakshmikanth
The below code works if ! (( [...
The below code works

if ! (( [ ${TIME_OF_DAY} = "MORNING" ] ) || ( [ ${TIME_OF_DAY} = "AFTERNOON" ]) || ([ ${TIME_OF_DAY} = "EVENING" ] ) || ( [ ${TIME_OF_DAY} = "NIGHT" ]))

Thanks
3,692
Posted By lakshmikanth
usage of brackets for if
Hi,

I would like to know about the usage of brackets to negate a set of boolean evaluations
an equivalent to what i am trying is below

if [ ! [ [$INPUT=="Morning"] or [$INPUT=="Evening"] ||...
Showing results 1 to 6 of 6

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