13 July 2011

remove leading whitespace from a file with sed 's/^[ \t]*//' < old.file > new.file

1 comment:

  1. or using tr
    tr -d '\011' < old.file > new.file

    ReplyDelete

Pages