Delete Leading Whitespace

Tagged with: , , , , ,

Delete leading whitespace (spaces/tabs/etc) from beginning of each line


ruby -pe 'gsub(/^\s+/, "")' < file.txt

One Response to “Delete Leading Whitespace

Leave a Reply