Tag: whitespace
Delete Leading Whitespace Using Sed
May 12, 2009
Delete leading whitespace (spaces/tabs/etc) from beginning of each line. Same as yesterday’s command – but using sed cat file.txt |…
Delete Leading Whitespace
May 11, 2009
Delete leading whitespace (spaces/tabs/etc) from beginning of each line ruby -pe ‘gsub(/^\s+/, “”)’ < file.txt
Remove Empty Characters at End of Lines
April 18, 2008
Remove empty characters at the end of each row sed -e ‘s/ *$//’ file.txt
Recent Comments