I am sure 200% something like this has been asked but by google skills are eluding me and I need a solid example as I am getting all sorts of errors perhaps on escaping the ?. I thought I could do something like
${var1|?*|}
as I want to take
asldkjljewrewr?adflksjfdljksdf
and strip it down to
asldkjljewrewr
using bash script.