Tag Archives: sed

Use sed to replace last character after matching a line

If you are a coder like me we tend to discover after we have made a script that we need to change something on multiple lines. Recently I have a script whereby added a “log_message” function which would echo a … Continue reading

Posted in Command Line FU | Tagged , , | Leave a comment

sed print only line AFTER string match

File Example

Posted in Command Line FU | Tagged , , | Leave a comment

Cut all characters after last match using SED

Output

Posted in Command Line FU | Tagged , , | Leave a comment