To delete line 7 of test.txt
sed -i 7d test.txt
sed '/^WHOLELINEOFTEXT$/d' input.txt > output.txt
To add text to the end of each line in the file test.txt and put the result into test2.txt
sed 's/$/newtexttoaddon/g' test.txt > test2.txt
To add text to the start of each line in the file test.txt and put the result into test2.txt
sed 's/^./newtexttoaddon/g' test.txt > test2.txt