Skip to main content
added 4 characters in body; edited tags; edited title
Source Link
Michael Mrozek
  • 95.8k
  • 40
  • 245
  • 236

Subtitue Substitute part of text file using bash script

I'm writing a shell script (bash) to fetch and build several bits of software, the. The script also writes several small config files and needs to alter a couple of pre-existing config files. What is the best way to find and substituesubstitute a few lines of a text file from a bash script?

This sounds like a job for sedsed, but I don't understand the syntax...

Subtitue part of text file using bash script

I'm writing a shell script (bash) to fetch and build several bits of software, the script also writes several small config files and needs to alter a couple of pre-existing config files. What is the best way to find and substitue a few lines of a text file from a bash script?

This sounds like a job for sed but I don't understand the syntax...

Substitute part of text file using bash script

I'm writing a shell script (bash) to fetch and build several bits of software. The script also writes several small config files and needs to alter a couple of pre-existing config files. What is the best way to find and substitute a few lines of a text file from a bash script?

This sounds like a job for sed, but I don't understand the syntax...

Source Link
Frozenskys
  • 707
  • 2
  • 8
  • 12

Subtitue part of text file using bash script

I'm writing a shell script (bash) to fetch and build several bits of software, the script also writes several small config files and needs to alter a couple of pre-existing config files. What is the best way to find and substitue a few lines of a text file from a bash script?

This sounds like a job for sed but I don't understand the syntax...