sed command to remove spaces at start of line code example Example: sed remove space sed 's/ //g' filename