Hi Vlad,
Is there really no way to stop at ",DA1="??
The reason why I need to capture that value is because I need to replace some special characters by their Decimal value (This functionality is already tested and working). but this means that the Field value can contain anything (@,;.etc)...
Hi Vlad,
What is wrong with this script?
FILENAME="NU1=001,TX4=Test.Test,Test,DA1=23-11-2003,VID=R0001,FID=00002.001"
FIELD1=",TX4="
FIELD2=",DA1="
FIELDVALUE='echo "$FILENAME" | sed -e '/"$FIELD1"/s/.*"$FIELD1"\([^"$FIELD2"][^"$FIELD2"]*\).*/\1/g'
echo "$FILENAME"
echo "$FIELD1"
echo...
Hi Guys,
Nice atmosphere here!
a little tuning required. With the code of <vgersh99> I get more then I require. I get "teststring,Unix.scripting" and I should only get "Unix.scripting".
A better alternative to me would be that you explain what these complex sed command arguments do, but a...
could somebody please let me know how to find a string inside a string?
I'm trying to do the following:
InputString= "teststring,MSG1=Unix.scripting,MSG2=teststring.ext"
SubString = string between ",MSG1=" and ",MSG2=" = in this example = "Unix.scripting"
I really don't find a way to extract...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.