4 ms·
This is not always true: log.msg("error with " + "some description") grep "error with some description" ... Yes, there are standards
by viraptor 13y ago
This is not always true:
log.msg("error with " +
"some description")
grep "error with some description" ...
Yes, there are standards for coding. They are usually 80 or 100 characters. And each one has a different way of handling the wrapping cases, splitting strings, wrapping values (parens, line join with \, concatenation, etc.)
- cmccabe 13y agoYou can use something like this: grep --with-filename -A 3 error $FILES | grep -C 3 description If that's not elegant enough for you, there are even tools like pcregrep that can do multiline matches. Don't uglify the code because of easily solved tool problems.