bash:files:delete_a_line_that_matches_a_pattern
Differences
This shows you the differences between two versions of the page.
bash:files:delete_a_line_that_matches_a_pattern [2022/06/13 10:21] – created peter | bash:files:delete_a_line_that_matches_a_pattern [2022/06/13 10:21] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== BASH - Files - Delete a line that matches a pattern ====== | ====== BASH - Files - Delete a line that matches a pattern ====== | ||
+ | |||
+ | <code bash> | ||
+ | sed '/ | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Edit files in place ===== | ||
+ | |||
+ | <code bash> | ||
+ | sed -i '/ | ||
+ | </ | ||
bash/files/delete_a_line_that_matches_a_pattern.1655115693.txt.gz · Last modified: 2022/06/13 10:21 by peter