sed replace output code example
Example: sed output of command
Just use something like following with p option at sed command`s end:
cat file.txt| sed -En "s/string_to_replace/replacement_string/p"
Just use something like following with p option at sed command`s end:
cat file.txt| sed -En "s/string_to_replace/replacement_string/p"