H e test.bin # modifying the last line of a binary file adds a newline $s/x/x/ # but undo restores the line to its previous state u w out.o