aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • System Administration Quiz - Mainframe and Linux
  • To delete all the trailing spaces of each line of file test1
Multiple choice technology programming languages

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
Reveal answer Fill a bubble to check yourself
A Correct answer

Keep practicing — related questions

  • To delete the last word of each line in the file test1
  • 25 To delete the last word of each line in the file test1
  • which function is used to clear leading or trailing spaces or infact any other characters?
  • How will you substitute the strings in a file using SED?
  • Which method of the String class is used to remove the leading and trailing blank spaces from the string?
  • Command used to supress all spaces from a given file named test.
  • TrimF(" String with whitespace ") = ?
  • What is the output of the command $sed 's/\([a-z]*\) *\([a-z]*\)/\2,\1/' file
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Computer File Systems (1249 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy