Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Sarah1977

    Search for a string in string

    Thank you all who contributed to the solution! The code of <Ygor> did what I needed. Also I would like to thank <vgersh> for the valuable help!
  2. Sarah1977

    Search for a string in string

    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)...
  3. Sarah1977

    Search for a string in string

    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...
  4. Sarah1977

    Search for a string in string

    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...
  5. Sarah1977

    Search for a string in string

    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...

Part and Inventory Search

Back
Top