{"id":8273,"date":"2019-08-28T13:18:26","date_gmt":"2019-08-28T17:18:26","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=8273"},"modified":"2019-08-28T13:18:26","modified_gmt":"2019-08-28T17:18:26","slug":"seven-bash-tips","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=8273","title":{"rendered":"Seven Bash Tips"},"content":{"rendered":"<p>Carrying on with yesterday\u2019s theme of Bash hackery, I present to you Ian Miell\u2019s <a href=\"https:\/\/zwischenzugs.com\/2019\/08\/25\/seven-god-like-bash-history-shortcuts-you-will-actually-use\/\">Seven God-Like Bash History Shortcuts You Will Actually Use<\/a>. If you\u2019re anything like me, you read one of these articles and think, \u201cWow! That\u2019s really neat. I\u2019m gonna start doing that too.\u201d Of course, you immediately forget the shortcuts and keep doing things the way you always have. Even Miell, who wrote the <a href=\"https:\/\/leanpub.com\/learnbashthehardway\">book<\/a> on this stuff, admits that he mostly forgets the shortcuts. He says, however, that these are shortcuts that he uses everyday and that he\u2019s actually learned them.<\/p>\n<p>You may or may not \u201cactually use\u201d Miell\u2019s tips but they <i>are<\/i> handy and if you work on the command line a lot, they are definitely worth knowing. Many of the tips involve quickly changing one of the words on the last command or, perhaps, switching their order. That\u2019s useful when you misenter one of the arguments in a long command line. Rather than retyping the whole thing, you can use one of the shortcuts to minimize the amount of retyping you need to do. There are other shortcuts for doing things like a search and replace. Take a look at Miell\u2019s post to see what you can do.<\/p>\n<p>Of course, you can always bring up the last command and use the editing capabilities of Readline that I wrote about yesterday to accomplish the same things so you might not think it\u2019s worthwhile learning the shortcuts. If you strive to absolutely minimize the number of keystrokes you type, Miell\u2019s shortcuts will put you a bit ahead but only a bit. My own reaction is \u201cWow! That\u2019s really neat. I\u2019m gonna start doing that too.\u201d But I probably won\u2019t.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Carrying on with yesterday\u2019s theme of Bash hackery, I present to you Ian Miell\u2019s Seven God-Like Bash History Shortcuts You Will Actually Use. If you\u2019re anything like me, you read one of these articles and think, \u201cWow! That\u2019s really neat. &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=8273\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[37,36],"class_list":["post-8273","post","type-post","status-publish","format-standard","hentry","category-general","tag-tech","tag-unix"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8273"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8273\/revisions"}],"predecessor-version":[{"id":8274,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8273\/revisions\/8274"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}