Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
sed replace first in file
paul
Programming language:
Shell/Bash
2021-05-02 04:24:05
1
Q:
sed replace first in file
user28007
Code:
Shell/Bash
2021-02-22 20:58:06
sed '0,/REPLACESTHIS/s//WITHTHAT/' myfile.txt
0
Tags
file
replace
first
Related
linux replace string in all files
sed replace with newline
bash search and replace text in file
sed replace in file
sed remove first line
sed from match to end of file
sed replace word with newline
replace delimiter for enter command
sed print from match to end of file
sed replace all until match in line
sed replace from match
delete strings after match to eol using sed command
sed replace from match to end of line
sed match newline
New to Communities?
Join the community