Horje
bash print one line until match Code Example
bash print one line until match
Just use a similar example with using ".*" regex with sed as following:
sed 's/match_pattern.*/replacement_of_match_and_rest_of_line/' file.txt




Shell

Related
git pull a specific sha Code Example git pull a specific sha Code Example
yarn lock conflicts Code Example yarn lock conflicts Code Example
github pypi workflow Code Example github pypi workflow Code Example
use gulp Code Example use gulp Code Example
bash add comma to end of line Code Example bash add comma to end of line Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10