Search Results

Search: Posts Made By: sabina
13,665
Posted By sabina
Thanks, Sabina
Thanks,

Sabina
13,665
Posted By sabina
This prints TEST_1 I want it to print...
This prints

TEST_1

I want it to print the value of TEST_1

10.2.3.4


Thanks,
Sabina
13,665
Posted By sabina
echo variable problem
hi

I have say five variable.

I would ask the user which one they want me to print and then print accordingly.


TEST_1='10.2.3.4'
TEST_2='11.2.3.5'
TEST_3='12.2.3.5'
TEST_4='13.2.3.5'...
3,010
Posted By sabina
Hi jim Thanks for you reply. I forgot...
Hi jim

Thanks for you reply.

I forgot to mention in my request that I am using Bourne shell and I guess arrays are not implemented in bourne shell.


Thanks,
Sabina
3,010
Posted By sabina
shell variable access
Hi

I want to do the following:

1. Create a number of Gloabla varibale "ROUTE_IP_xx" based on a counter. As xx sould be from 1-10.

ie ROUTE_IP_1
ROUTE_IP_2
.
.
ROUTE_IP_10
...
16,721
Posted By sabina
Hi ZB I found a case where if fails. ...
Hi ZB

I found a case where if fails.

ip=1.2.3.4.

If we have nothing after last "." if failes to recognize it as invalid ip address.

Thanks,
Sabina
18,524
Posted By sabina
hi Zb and bhargav Thanks a lot for your...
hi Zb and bhargav

Thanks a lot for your time. It was really useful.

Sabina
16,721
Posted By sabina
Hi ZB I tried it and it works pertfectly. I...
Hi ZB

I tried it and it works pertfectly. I really like your code. It look so neat and precise. Thanks a lot for your time. I really appreciate it.

Sabina
18,524
Posted By sabina
hi I am using bourne shell. I used your...
hi

I am using bourne shell. I used your script it works as long as I enter a number.

I want it to fail if I enter a string by mistake.

Thanks for your reply.

Sabina
18,524
Posted By sabina
validate number range
Hi

If I want to read user input and want to validate if it is a numeric number in some range of 1-100 what would be the best way?

Sabina
16,721
Posted By sabina
How to validate an IP address
hi

I need a simple script to do the following.

I need to check the user input for

1. quad dotted notation.
2. check that all of the inputs are numeric and within 1-255 range.

Could...
Showing results 1 to 11 of 11

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