Delete Leading Whitespace Using Sed
Tagged with: command, delete, leading, Linux, sed, whitespace
Delete leading whitespace (spaces/tabs/etc) from beginning of each line. Same as yesterday’s command – but using sed
cat file.txt | sed -e 's,^ *,,'
Credit: Vivin
Follow me(@binnyva) on Twitter