{"id":1557,"date":"2014-11-08T14:35:46","date_gmt":"2014-11-08T14:35:46","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=1557"},"modified":"2014-11-08T14:35:46","modified_gmt":"2014-11-08T14:35:46","slug":"stackoverflow%e4%b8%8a%e7%9a%84%e4%b8%80%e4%ba%9b%e5%a5%bd%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/1557.html","title":{"rendered":"Stackoverflow\u4e0a\u7684\u4e00\u4e9b\u597d\u95ee\u9898"},"content":{"rendered":"<p>Stackoverflow\u8fd9\u4e2a\u7f51\u7ad9\u5bf9\u4e8e\u7a0b\u5e8f\u5458\u7684\u91cd\u8981\u6027\u6211\u5c31\u4e0d\u591a\u8bf4\u4e86\uff0c\u57fa\u672c\u4e0a\u6709\u4e86\u5b83\u548cGitHub\uff0c\u5c31\u53ef\u4ee5\u7f16\u7a0b\u65e0\u5fe7\u4e86`(*\u2229_\u2229*)\u2032<\/p>\n<p>\u4e0b\u9762\u603b\u7ed3\u4e00\u4e9bStackoverflow\u4e0a\u6536\u96c6\u5230\u7684\u4e00\u4e9b\u597d\u95ee\u9898\uff08\u4e0d\u5b9a\u671f\u66f4\u65b0\uff09\uff1a<\/p>\n<p><strong><a href=\"http:\/\/stackoverflow.com\/questions\/211378\/hidden-features-of-bash\" target=\"_blank\">Hidden features of Bash<\/a><\/strong><\/p>\n<p>Shell scripts are often used as glue, for automation and simple one-off tasks. What are some of your favorite &#8220;hidden&#8221; features of the Bash shell\/scripting language?<\/p>\n<ul>\n<li>One feature per answer<\/li>\n<li>Give an example and short description of the feature, not just a link to documentation<\/li>\n<li>Label the feature using bold title as the first line<\/li>\n<\/ul>\n<p>See also:<\/p>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/132241\/hidden-features-of-c\" target=\"_blank\">Hidden features of C<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/9033\/hidden-features-of-c\" target=\"_blank\">Hidden features of C#<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/75538\/hidden-features-of-c\" target=\"_blank\">Hidden features of C++<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/102254\/hidden-features-of-delphi\" target=\"_blank\">Hidden features of Delphi<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/101268\/hidden-features-of-python\" target=\"_blank\">Hidden features of Python<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/15496\/hidden-features-of-java\" target=\"_blank\">Hidden features of Java<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/61088\/hidden-features-of-javascript\" target=\"_blank\">Hidden features of JavaScript<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/63998\/hidden-features-of-ruby\" target=\"_blank\">Hidden features of Ruby<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/61401\/hidden-features-of-php\" target=\"_blank\">Hidden features of PHP<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/161872\/hidden-features-of-perl\" target=\"_blank\">Hidden features of Perl<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/102084\/hidden-features-of-vbnet\" target=\"_blank\">Hidden features of VB.Net<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Reference:<\/p>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/211378\/hidden-features-of-bash\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/211378\/hidden-features-of-bash<\/a><\/li>\n<\/ul>\n<p>Python tips:<\/p>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/search?tab=votes&amp;q=tips%20python\" target=\"_blank\">http:\/\/stackoverflow.com\/search?tab=votes&amp;q=tips%20python<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/1623039\/python-debugging-tips\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/1623039\/python-debugging-tips<\/a><\/li>\n<\/ul>\n<p>Bash tips:<\/p>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/search?tab=votes&amp;q=tips%20bash\" target=\"_blank\">http:\/\/stackoverflow.com\/search?tab=votes&amp;q=tips%20bash<\/a><\/li>\n<\/ul>\n<p>Vim shortcut:<\/p>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/1218390\/what-is-your-most-productive-shortcut-with-vim\/2559262#2559262\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/1218390\/what-is-your-most-productive-shortcut-with-vim\/2559262#2559262<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/550632\/favorite-django-tips-features\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/550632\/favorite-django-tips-features<\/a><\/li>\n<\/ul>\n<p>UTF-8:<\/p>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/496321\/utf8-utf16-and-utf32\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/496321\/utf8-utf16-and-utf32<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/9066609\/fastest-possible-grep\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/9066609\/fastest-possible-grep<\/a><\/p>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/4604663\/github-download-single-files\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/4604663\/github-download-single-files<\/a><\/p>\n<p>good python implementation algorithm<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stackoverflow\u8fd9\u4e2a\u7f51\u7ad9\u5bf9\u4e8e\u7a0b\u5e8f\u5458\u7684\u91cd\u8981\u6027\u6211\u5c31\u4e0d\u591a\u8bf4\u4e86\uff0c\u57fa\u672c\u4e0a\u6709\u4e86\u5b83\u548cGitHub\uff0c\u5c31\u53ef\u4ee5\u7f16\u7a0b\u65e0\u5fe7\u4e86 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[384],"class_list":["post-1557","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","tag-stackoverflow"],"views":2304,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/1557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=1557"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/1557\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=1557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=1557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=1557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}