Search Results

Search: Posts Made By: Johan III
11,758
Posted By Johan III
Thank you, cfajohnson! I tried both...
Thank you, cfajohnson!

I tried both approaches you gave. The "eval" code worked. The second approach ("set -f", etc) worked for my_version="04-01-2" but didn't report a match for...
11,758
Posted By Johan III
I tried vger's solution, but got the following...
I tried vger's solution, but got the following errors:

syntax error in conditional expression: unexpected token `('
syntax error near `+($'
` if [[ ${my_version} = +(${ok_versions}) ]]; then'
...
11,758
Posted By Johan III
I am working with a /bin/sh script file on a...
I am working with a /bin/sh script file on a Linux nemi 2.4.25 PPC system.
11,758
Posted By Johan III
Find string in list with wildcards
I need to add code to a shell script to find out if a string matches any item in a list, where the list can contain a wildcard character.

For example, if I have the following list:...
Showing results 1 to 4 of 4

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