[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Delete all after a pattern



Hi guys!
Is It possible, with "sed" erase all after a pattern?
I'm trying in all way but I can't...
I'd like to erase all after the pattern "config=" but only in the same line,
regardless of where it is located inside in a file.

Can somebody help me please?
Thank in advance for reply.

e.g.: after "config=" erase all until the end of the line
   


Reply to: