ãã¿ã大éã«æ¾ã£ã¦ããã®ã§ãéãã§ã¾ãã楽ãããã ## ã¹ãã¼ã·ã³ã° {{{ # 1è¡ç©ºãã sed G # 空ç½è¡ãé¤ãã¦1è¡ç©ºãã sed '/^$/d;G' # éããã¹ãã¼ã¹ãåãé¤ã sed 'n;d' # ãããããè¡ã®ä¸ã«ç©ºç½è¡ sed '/regexp/{x;p;x}' # ãããããè¡ã®ä¸ã«ç©ºç½è¡ sed '/regexp/G' # ãããããè¡ã®ä¸ä¸ã«ç©ºç½è¡ sed '/regexp/{x;p;x;G}' # }}} ## è¡çªå· {{{ # ã¤ãã¤ããªè¡çªå· sed = # ä½æ ã ã2è¡ã«è¡¨ç¤ºãããã®ã§ã2è¡ã1è¡ã«çµåããã sed = | sed 'N;s/\n/\t/' # ä½æ ãawkã awk '{print NR,"\t",$0}' # å³æããprel風ã«æ¸ãã¨ãs/^/ / *(.{6,}\n)/ ã¤ã¾ãã»ã»ã»" | 123|"ã¨åãåãã sed
{{#tags}}- {{label}}
{{/tags}}