bash:files:delete_trailing_whitespace_spaces_or_tabs_from_end_of_each_line_in_a_file
BASH - Files - Delete trailing whitespace (spaces or tabs) from end of each line in a file
Delete the trailing whitespace (spaces or tabs) from end of each line.
awk '{sub(/[ \t]+$/, "");print}' filename
bash/files/delete_trailing_whitespace_spaces_or_tabs_from_end_of_each_line_in_a_file.txt · Last modified: 2022/06/13 11:41 by peter