Nov 272010
Delete trailing spaces or tabs from end of each line
Answer:
To delete trailing spaces or tabs, i.e. whitespaces from end of each line, is easy with the sed command.
# sed 's/[ \t]*$//'
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Delete trailing spaces or tabs from end of each line
Answer:
To delete trailing spaces or tabs, i.e. whitespaces from end of each line, is easy with the sed command.
# sed 's/[ \t]*$//'