Answers for "bash replace specific line in file"

1

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 replace specific line in file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language