The following lines were added (+) and removed (-):
=== example: edit each line of text with character removal or substitution ===Just like we would edit lines of text using vim, we can use sed to make modifications on a line by line basis. In this example we are going to process a text file and remove part of each line containinginformation that we do not need. If we were in the vim editor it would look like this: :%s/\[202.*PlayerID:\ //To mimic this using sed it will look like this: sed -E 's/\[202.*PlayerID:\ //' playerids.txt > playerids2.txtThe output file contains the same number of lines, with each line having had a portion removed.