sed command remove white space end of line Command to remove while space end of line in linux sed 's/ *$//'