Posted in Command Line, Linux, Ruby Delete Leading Whitespace Binny V A May 11, 2009 1 Comment on Delete Leading Whitespace Delete leading whitespace (spaces/tabs/etc) from beginning of each line ruby -pe 'gsub(/^\s+/, "")' < file.txt Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.
1 thought on “Delete Leading Whitespace”