Horje
how to use sed output to overwrite existin file Code Example
linux replace string in all files
sed -i 's/old-text/new-text/g' input.txt
sed replace in file
sed -i 's/foo/bar/g' hello.txt
how to use sed output to overwrite existin file
# Finds a specific string with regex and appends content
# overiding existing file. 
sed '/regex/a' <file> | tee <file>
# Example
sed '/\[task_concurrency\]/a 'execute=True'' carbon.cfg | tee carbon.cfg




Shell

Related
rust install windows Code Example rust install windows Code Example
bash while read line loop from variable Code Example bash while read line loop from variable Code Example
apache version mac Code Example apache version mac Code Example
resart network Code Example resart network Code Example
ubuntu turn off swap Code Example ubuntu turn off swap Code Example

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