Sed: Revision history

Jump to: navigation, search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

11 September 2024

  • curprev 14:2714:27, 11 September 2024Ardika Sulistija talk contribs 6,023 bytes +6,023 Created page with "ADD NOTES: https://stackoverflow.com/questions/29399790/comment-out-lines-in-fstab-with-bash-script </br> https://www.bitdoze.com/sed-insert-append-text/#appending-text-with-sed You can use sed to print out specific lines of a file. I'm sure there's more you can do with sed but this is what I have for now. How to remove a line that contains a string like "aws-replication" from a file: # grep -i aws-replication test disk:x:6:aws-replication aws-replication:x:1001:..."