Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. cd przwol
  2. mkdir exreg
  3. cd exreg
  4. curl http://alioth.uwb.edu.pl/so/data/error_log -o errors_log
  5. grep -n '^E' errors_log > errors_only
  6. grep -n '^I' errors_log > info_only
  7. grep "[0-3][0-9]/[A-z][a-z][a-z]/2008" errors_log > 2008.txt
  8. grep "[0-3][0-9]/[A-z][a-z][a-z]/2009" errors_log > 2009.txt
  9. grep "[0-3][0-9]/[A-z][a-z][a-z]/2010" errors_log > 2010.txt
  10. grep "[0-3][0-9]/[A-z][a-z][a-z]/2011" errors_log > 2011.txt
  11. grep "[0-3][0-9]/[A-z][a-z][a-z]/2012" errors_log > 2012.txt
  12. grep "[0-3][0-9]/[A-z][a-z][a-z]/2013" errors_log > 2013.txt
  13. grep "[0-3][0-9]/[A-z][a-z][a-z]/2014" errors_log > 2014.txt
  14. grep "[0-3][0-9]/[A-z][a-z][a-z]/2015" errors_log > 2015.txt
  15. grep "[0-3][0-9]/[A-z][a-z][a-z]/2016" errors_log > 2016.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement