To delete all the trailing spaces of each line of file test1

  1. sed 's/[ ][^ ]*$//' test2

  2. sed 's/[ ][ ]*$//' test2

  3. sed 's/[ ][ ]*$/' test2

  4. sed 's/[ ][ $]*$//' test2


Correct Option: A

Find more quizzes: