Skip to content

Instantly share code, notes, and snippets.

@phnahes
Created June 1, 2020 00:42
Show Gist options
  • Save phnahes/068d3b8ab71f9aedeef19280a6eb7b2e to your computer and use it in GitHub Desktop.
Save phnahes/068d3b8ab71f9aedeef19280a6eb7b2e to your computer and use it in GitHub Desktop.
Add script on specific line using bash
awk 'NR==3{print "insert your text here"}1' /etc/config.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment