{"id":485,"date":"2020-08-20T13:21:11","date_gmt":"2020-08-20T13:21:11","guid":{"rendered":"https:\/\/www.unordnung.net\/?p=485"},"modified":"2020-08-20T13:21:11","modified_gmt":"2020-08-20T13:21:11","slug":"automate-the-boring-stuff-with-bash","status":"publish","type":"post","link":"https:\/\/unordnung.net\/misc\/2020\/08\/automate-the-boring-stuff-with-bash\/","title":{"rendered":"Automate the boring stuff with bash"},"content":{"rendered":"\n<div class=\"wp-block-image is-style-rounded\"><figure class=\"alignright size-large is-resized\"><img decoding=\"async\" src=\"http:\/\/unordnung.net\/misc\/wp-content\/uploads\/2020\/08\/image.jpeg\" alt=\"bash logo\" class=\"wp-image-490\" width=\"200\" height=\"113\"\/><\/figure><\/div>\n\n\n<p>I really start to love bash. And dislike python. I&#8217;m not good at both, but i like to automate boring, repeative tasks. Being a pentester and network admin using linux (of course) i&#8217;m working a lot in the shell, editing connfig files, checking network devices and such things. I encounter a lot of problems which could be automated and I try to do so whenever possible. <br \/><br \/>Recently I was writing a script to update config file syntax for alcatel switches and started doing it in python. After some hours I switched doing it in bash and it was done pretty quickly&#8230;bash is awesome \ud83d\ude42<br \/><br \/>Python keeps annoying me somehow, all this object fuckery and I kinda start to dislike the forced intendation. Also it has so much modules and functions doing very similar stuff, that it takes me forever finding the one doing exactly what I need&#8230;didn&#8217;t experienced that in other languages, but I haven&#8217;t much experience coding, so it might be too lees to have a picture,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I really start to love bash. And dislike python. I&#8217;m not good at both, but i like to automate boring, repeative tasks. Being a pentester and network admin using linux (of course) i&#8217;m working a lot in the shell, editing connfig files, checking network devices and such things. I encounter a lot of problems which &#8230; <a title=\"Automate the boring stuff with bash\" class=\"read-more\" href=\"https:\/\/unordnung.net\/misc\/2020\/08\/automate-the-boring-stuff-with-bash\/\">Read more<span class=\"screen-reader-text\">Automate the boring stuff with bash<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[10,11,36,46,59],"class_list":["post-485","post","type-post","status-publish","format-standard","hentry","category-fachinformatiker","tag-automation","tag-bash","tag-informatik","tag-linux","tag-python"],"_links":{"self":[{"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/posts\/485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/comments?post=485"}],"version-history":[{"count":0,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/posts\/485\/revisions"}],"wp:attachment":[{"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/media?parent=485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/categories?post=485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/tags?post=485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}