====== BASH - Files - Delete leading whitespace (spaces or tabs) from front of each line in a file ====== Delete the leading whitespace (spaces or tabs) from front of each line. Text will end up flush left. awk '{sub(/^[ \t]+/, ""); print}' filename