How to truncate long matching lines returned by grep or ack

You could use the grep option -o, possibly in combination with changing your pattern to “.{0,10}<original pattern>.{0,10}” in order to see some context around it: -o, –only-matching Show only the part of a matching line that matches PATTERN. ..or -c: -c, –count Suppress normal output; instead print a count of matching lines for each input … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)