Anyone got any ideas on how to do a fuzzy type search on a string in ksh, without cutting the string up (too many naming variations)
my script works when lsvg output like
VOL_PROD_NO1_vg
and vcs command produces
VOL_PROD_NO1
but when
lsvg produces something like
VOL_PROD_NO1_vg
vcs command produces
VOL_LIVE_NO1
the script fails.
Ideally need just to match the majority of the string.
Ideally I'd go round and fix the mismatches (which I may end up having to do) but just wondered if anyone has any fancy tricks.
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
my script works when lsvg output like
VOL_PROD_NO1_vg
and vcs command produces
VOL_PROD_NO1
but when
lsvg produces something like
VOL_PROD_NO1_vg
vcs command produces
VOL_LIVE_NO1
the script fails.
Ideally need just to match the majority of the string.
Ideally I'd go round and fix the mismatches (which I may end up having to do) but just wondered if anyone has any fancy tricks.
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."