awk:delete_both_leading_and_trailing_whitespaces_from_each_line
This is an old revision of the document!
AWK - Delete both leading and trailing whitespaces from each line
awk '{ gsub(/^[ \t]+|[ \t]+$/, ""); print }' file.txt
awk/delete_both_leading_and_trailing_whitespaces_from_each_line.1600876620.txt.gz · Last modified: 2020/09/23 15:57 by 192.168.1.1