Search Results

Search: Posts Made By: frodo61
5,159
Posted By frodo61
Thanks. The nested for loop works but if I want...
Thanks. The nested for loop works but if I want to output files that arent found as well I get repeated messages due to not matching to any of the array elements, how could I only output the...
5,159
Posted By frodo61
Compare two arrays
Hi,

I am trying to compare two lists that are held in two variables so I believe I need to access the array elements to compare these. I am using ksh 88 and the code I have tried is below:

for...
2,437
Posted By frodo61
Brilliant, this has done the trick. Thanks so...
Brilliant, this has done the trick. Thanks so much for your help. Maybe in 20 years I might have learnt all these differences but probaly not :D
2,437
Posted By frodo61
Sorry, I still get the same result. :eek:
Sorry, I still get the same result. :eek:
2,437
Posted By frodo61
Sorry I meant the regular expression from my code...
Sorry I meant the regular expression from my code above.

It almost works but as soon as I add the ? it no longer picks up the numbers 1.1, 1.2 etc as valid. If I dont have the question mark...
2,437
Posted By frodo61
Thank you for explaining. If my shell doesnt...
Thank you for explaining. If my shell doesnt support regular expressions why does some of the regular expression work in my code? The =~ didnt work by the way. I will try usng the grep example...
2,437
Posted By frodo61
Thanks both, I havent tried your suggestions yet...
Thanks both, I havent tried your suggestions yet but is my regular expression correct or am I doing something wrong with my syntax.

I am using korn shell, I believe t88 version.
2,437
Posted By frodo61
Regular expression help
Hi,

I am quite knew to scripting and I am trying to get a regular expression to work to check that a user enters a valid version number such as 1 or 1.1 or 12.3 etc. I dont seem to be able to get...
Showing results 1 to 8 of 8

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