/ Published in: Bash
trims spaces from the source code and left align the code column
Expand |
Embed | Plain Text
find . -name \*.php -exec grep -Hi "PATTERN TO FIND" {} \; | awk -F":" '{gsub(/^\t*/,"",$2);gsub(/ *$/,"",$2);gsub(/^ */,"",$2);printf("%-50s:%s\n", $1, $2);}'
You need to login to post a comment.
