update_next_line_based_on_list_of_variable
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
update_next_line_based_on_list_of_variable [2009/06/04 04:15] – created k2patel | update_next_line_based_on_list_of_variable [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 12: | Line 12: | ||
#sed -i.bak " | #sed -i.bak " | ||
- | # | + | # |
- | open, | + | |
done | done | ||
</ | </ | ||
+ | |||
+ | ==== sed to insert line after string match ==== | ||
+ | |||
+ | * -i will allow you to write to file and create backup | ||
+ | * -e will allow for bash expression such as ' | ||
+ | |||
+ | * usage: '/ | ||
+ | |||
+ | <code bash | quickinsert.sh> | ||
+ | |||
+ | sed -i.bak | ||
+ | |||
+ | </ | ||
+ |
update_next_line_based_on_list_of_variable.1244088932.txt.gz · Last modified: 2020/08/10 02:29 (external edit)