Answers for "bash change specific word in file"

1

replace word in file linux command

sed -i 's_oldword_replaceword_gI' document_name.txt
Posted by: Guest on February-16-2021
0

bash replace specific line in file

# Basic syntax:
sed '<row_number>s/.*/<replacement_text>/' your_file
# Where:
#	- The row_number is the row your want to replace with the
#		replacement_text
#	- .* means match anything on that row (so it can be replaced)
Posted by: Guest on July-22-2021

Code answers related to "bash change specific word in file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language