Example:
before: text_before_specific_character(specific_character)text_to_be_deleted after: text_before_specific_character
I know that
What you're looking for is actually really easy:
sed 's/A.*//'
Where A marks the specific character. Note that it is case sensitive, if you want to catch multiple characters use
A
sed 's/[aAbB].*//'