1 2 3 4 5 6 7 8 9 10
#!/bin/sh # # Test comment on the last line with no newline # : ${VISUDO=visudo} printf "# one comment\n#two comments" | $VISUDO -csf - exit 0