16.) To delete all the trailing spaces of each line of file test1
a) sed 's/[ ][^ ]*$//' test2
b) sed 's/[ ][ ]*$//' test2
c) sed 's/[ ][ ]*$/' test2
d) sed 's/[ ][ $]*$//' test2