Uhm, probably a stupid question....
I want to find out if a string is in a variable.
myvar='thisisnamliamsstupidquestion'
if [ "$myvar" like "namliam" ]
would return a true or maybe a 7 as that is the character it is starting.
Just searching (a bit quickly) I am not finding it. Any bright minds out there? As its CoB for me... Hope to find a nice answer in the morning
Thanks in advance.