Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grep -rE '^[-0-9]+ [0-9:\.]+ [0-9 ]*ERROR ' /var/log/ |
- sed "s/\(.*\)\(20[0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\.[0-9]\+\)\(.*\)/\2 ERROR \1\3/g" > /tmp/errors.txt;
- mv /tmp/errors.txt /var/log/extra/errors.txt
Add Comment
Please, Sign In to add comment