I need help with string manipulation

First of all I am VERY new to this so bare with me and try and explain everything even if it seems simple.

Basically I want to read a line of text from a html file. See if the line of text has a certain string in it. copy an unknown number of characters (the last 4 characters wiil be ".jpg" the first will be the string i searched for) from that string and print them to a .txt file.

i was reading and awk index will do what i want as far as locating the string but it will only print the index... is there anyway i can use the value it prints in the shell script?

You can store it in a shell variable. Let us look into your script so we can edit it as needed :slight_smile: