Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

æ¥åã§ä½¿ããã¼ã«(iTerm2,SequelPro,Chrome)ã ShellScriptã§ãã¤ãã¼ãã¯ããã¯ãã ã¯ããã« ãã®è¨äºã¯ä»å¹´ã¤ãï¼ãå§ãããããã¯ãã㯠by ããã¿ feat.ãã太é Advent Calendar 2019ã®20æ¥ç®ã®è¨äºã§ãã ä»å¹´ã¯ããå§ããã¯ããã¯ãã¨ãããã¨ã§ãæ¥åå¹çåッ!!ãç¾ã«æ¥åæéã®30ï¼ ã¯ShellScriptéã³ã«å½ã¦ã¦ããç§ã«ããã¿ãªãªä¼ç»ã§ããããããã¨ããããã¾ãã ä»åã¯æ¥åã§ãã使ããã¼ã«ããShellScriptã§ãã¤ãã¼ãã¯ããã¯ããæ¹æ³ãããã¤ããç´¹ä»ã ä»åç´¹ä»ããã³ã¼ãã¯å ¨é¨Githubã«ããã¦ããã®ã§å®éã«è©¦ããã人ã¯ã©ããã ãã¤ãã¼ãã¯ããã¯ãã対象 GoogleChrome iTerm2 SequelPro GoogleChrome ãã©ã¦ã¶ã«ç§»åããTerminalã§èªå¨ã«ã¿ã移åãã Webéçºã
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? æ¬è¨äºãåã£æãã¨ãªã£ã¦ã声ãããé ããæ¬è¨äºã®å¢è£ãªãã¡ã¤ã³çã¨ãªãè¨äºãSoftwareDesign 2018å¹´1æå·ã®ã·ã§ã«ã¹ã¯ãªããç¹é第2ç« ã¨ãã¦å·çãã¾ããããªãã¡ã¤ã³çã«ã¯ããã®è¨äºã§è§¦ãã¦ããªãææ³é¢ã§ã®åããã«ããã«ã¤ãã¦ã®è§£èª¬ãå«ã¾ãã¦ãã¾ãããã®ææ³é¢ã§ã®åããã«ããã®è§£èª¬ã®ä¸é¨ã«ç¸å½ããè¨äºãããã¾ãã®ã§ããã²ãã¡ããä½µãã¦ã覧ä¸ããã Shell Script Advent Calendarãã覧ã®çæ§ãå³ã ããã5æ¥ç®ã«ç¶ã2度ç®ã®ã¨ã³ããªã¼ã®Piroã§ãã ååã¯èªä½ã®Bashã¹ã¯ãªãã製Twitterã¯ã©
ã·ã§ã«ã¹ã¯ãªããã¯é·ããªãã¨å¦çã®å¢çãä¸é®®æã«ãªããã¡ã ã³ã¡ã³ãã§å¦çã®å¢çã表ç¾ãã工夫ã¯ããè¦ããããããã£ã¨è¯ãæ¹æ³ã¯ãªããèãã¦ã¿ãã :ã³ãã³ãã&&æ¼ç®åãè¤åã³ãã³ã()ã{}ãçµã¿åããã¦æ¸ãã¨ãå¦çã®å¢çç·ãã¯ã£ããããã
ãã£ã±ãããã·ã¢ã¯ãããã·ã¢ã§ãããã ã¡ãã£ã¨ã¡ã¢ãã° RFCãèªãã¨ãã«ä½¿ãã®ãRFC Editor » RFC Editor ã§ããRFCã£ã¦ç´ç²ãªããã¹ããã¡ã¤ã«ã§èªã¿ã«ããã¦ããã ããã§ãRFCãèªã¿ããããã¦ããããµã¤ããPretty RFC Pretty RFC ã¾ã å ¨é¨ã®RFCã«å¯¾å¿ãã¦ãªãã§ããããã¼ãªã¼ãèªã¿ãããã¦ï¼ã»âã»ï¼ã¤ã¤ï¼ï¼ çå ´ã®ãã¹ã³ããï¼ãªããããããããï¼ãè¦åå¡ã«ã¾ã¨ããã¤ãã¦ããã§ãããè¦åå¡ãæãã¬è¡åã«ããã ããããè¦åã®ãã£ã¡ãã by http://likemuji.net/ja/index.php ãã¤ãã®ãµãã«ã¼ãªã¼ã°ï¼ãã³ãã¹ã¬ã¼ãªã¼ã°ã®å¹³å観客æ°ã4ä¸äººãè¶ãã¦ãã¨ããé©æã®äºå®ãèãã¦ã³ã£ãããªãã§ãããããã«æ¾æ 権ãèãã¦ã³ã£ãã ãã³ãã¹ã¬ã¼ãªã¼ã°ã®ã®æ¾æ 権ããæ¨å¹´ã®ç´450ååã®5å²å¢ãã§ã13-14å¹´ã·ã¼ãºã³ã®æ¾æ 権ã
2. ã·ã§ã«è¸ã¨ã¯ï¼ â¢â¯ ããã¦ã¹ã使ãããã½ã¼ã¹ã³ã¼ããæ®ããã GUIãã¼ã«ãç«ã¡ä¸ããéããªãã ãããã調æ»ã»è¨ç®ã»ããã¹ãå¦çã ã³ãã³ãå ¥åä¸æã§çµãããããã㨠â⯠æ¨å¹´10æã®Hbstudy#38ã§åãã¦ä½¿ã£ãè¨è â⯠ç¾å¨ã¯ Windows PowerShell ã¾ã§é£ã³ç« â¢â¯ å¯ããªãã¼ã ãï¼ 2013/02/23 OSC 2013 Tokyo/Spring 2
$ ./args.sh a a a abc abc def abc def $ ./args.sh now ./args.sh: line 3: 1: parameter null or not set 説æ ${B:=abc} ã¯ã$B ã«å¤ãã»ããããã¦ãããããã使ãã ã»ããããã¦ããªãã£ãã = ã®ãã¨ã«æå®ããå¤ã $B ã«ä»£å ¥ã使ç¨ãããã¨ããæå³ã§ãã ${1:-now} ãä¼¼ããããªæå³ã§ãã$1 ã«å¤ãã»ããããã¦ãããããã使ãã ã»ããããã¦ããªãã£ãã - ã®ãã¨ã«æå®ããå¤ã使ç¨ãã¾ãã ãã ããæå®ããå¤æ°ã«ã¯ä»£å ¥ããã¾ãããä½ç½®ãã©ã¡ã¿ãæ±ãã«ã¯å¥½é½åãªããã§ãã ${1:?} ã¯ãã³ã¡ã³ãã®è¨è¿°ã®éããæå®ããå¤æ°ã® nullãã§ã㯠ããã¦ããã¾ãã ããããã·ã§ã«ã¹ã¯ãªããã®ä¸ã«è¨è¼ããã¨ãå¤ãã»ããããã¦ããªããã°çµäºã¹ãã¼ã¿ã¹ 1 ã§å¦çãçµäºãã¦
Dec 29, 2014Download as ODP, PDF60 likes18,945 views
1. http://gauc.no-ip.org/awk-users-jp/æ¥æ¬ GNU AWK ã¦ã¼ã¶ã¼ä¼ æè¤ @hi_saito - 1 - 2014 å¹´ 12 æ 13, 14 æ¥ ã·ã§ã«ã¹ã¯ãªããã¯ã¼ã¯ã·ã§ãã @é³¥åç°å¢å¤§å¦ jus åå¼·ä¼ ã·ã§ã«ã¹ã¯ãªããã¯ã¼ã¯ã·ã§ãã ãã·ã§ã«è¸ãã極ãã æ¥æ¬ GNU AWK ã¦ã¼ã¶ã¼ä¼ æè¤ åæ 2. http://gauc.no-ip.org/awk-users-jp/æ¥æ¬ GNU AWK ã¦ã¼ã¶ã¼ä¼ æè¤ @hi_saito - 2 - 2014 å¹´ 12 æ 13, 14 æ¥ ã·ã§ã«ã¹ã¯ãªããã¯ã¼ã¯ã·ã§ãã @é³¥åç°å¢å¤§å¦ ã¯ããã« 3. èªå·±ç´¹ä» ï® ãæ¥æ¬ GNU AWK ã¦ã¼ã¶ã¼ä¼ãä¼é· ï http://gauc.no-ip.org/awk-users-jp/ ï hi_sai[email protected] ï @hi_
ã·ã§ã«ã¹ã¯ãªããå ¥éã¨ãã¦, åºæ¬çãªæ¸ãæ¹ãã¾ã¨ãã¾ãã. é·ãã§ãã, 1ãã¼ã¸ã«ã¾ã¨ãã¦ã¿ã¾ãã. è¯ãã£ããç®æ¬¡ãåèã«ãã¦ã覧ã«ãªã£ã¦ä¸ãã. ç®æ¬¡ ã·ã§ã«ã¹ã¯ãªããã¨ã¯ ä½ãæ¹, å®è¡ã®ä»æ¹ ã³ã¡ã³ã ã¦ã¼ã¶ã¼ããã®ãã¼ãã¼ãå ¥åãåãä»ãã å¤æ° é常ã®å¤æ° ç¹å¥ãªå¤æ° æ¼ç®å æ°å¤è¨ç®æ¼ç®å æ¯è¼æ¼ç®å ã³ãã³ããç¹ããæ¼ç®å æ¡ä»¶æã«ä½¿ããæ¯è¼æ¼ç®å æ¡ä»¶æ å¶å¾¡æ§æ(åå²) ifæ caseæ å¶å¾¡æ§æ(ã«ã¼ã) foræ whileæ untilæ selectæ æååå¦ç æååç½®æ åé¤ è¤æ°è¡ã®ããã¹ãã®åºå(ãã¢ããã¥ã¡ã³ã) é¢æ° ã·ã§ã«ã¹ã¯ãªããã¨ã¯ ã·ã§ã«ã¹ã¯ãªããã¨ã¯, ã·ã§ã«ã®åä½ãã¾ã¨ãã¦è¨è¿°ããã¹ã¯ãªããã®ãã¨ã§ã. 決ããããææ³ã«ãããã£ã¦å¦çãè¨è¿°ãããã¨ã«ãã£ã¦, ã·ã§ã«ã§ã®å¦çãã¾ã¨ãã¦è¡ã£ãã, ä½æ¥ãèªååã§ããããã¾ã(ä¾ è¤æ°
ãChef! Chef!ãã¨å«ã°ããæ¨ä»ããã®Chefã«æ«æããçæ§ãããããéããã§ããããï¼ Chefã«æ«æä¸ã®id:k1LoWã§ãã AnsibleããããAnsibleã Chefã«æ«æããããã¨ãã£ã¦ãããã¸ã§ãã³ã°ãã¼ã«ã¸ã®æ§ãã¯æ¶ããããããªããæéãè¦ã¤ãã¦ã¯ããããããã£ã¦ããæã ååããã®ãAnsibleã¨ãããã¼ã«ãè¯ããããããã¨ããæ å ±ããã®ã¾ã¾éµåã¿ã«ããPHP Matsuri 2013ãéãã¦ä½¿ã£ã¦ã¿ã¦ä»ã«è³ã£ã¦ãã¾ãã AnsibleããããAnsibleã Ansibleã¯Python製ã®ãããã¸ã§ãã³ã°ãã¼ã«ã§ããChefãPuppetã¨åãé åã®ãã¼ã«ã§ããã ã¡ãªã¿ã«ãå¼ã³æ¹ã¯ãæ¥æ¬èªè±èªçã«ããããã¼ããã§ããããããã¼ããã§ããããããã¼ããã§ãããã¾ãããPHP Matsuri 2013ã§Vagrantã®Mitchell Hashimotoã
shell script ãæ¸ãã¨ãã® tips 2ã¤(åå¿è åã) shell script ã¯æ®æ®µããã¦éãããã¨é¡ã£ã¦ãã¾ãªãããã§ããããã¾ã«ã¯æ¸ããªãã¨ãããªããã¨ãããã®ã§ãããããã¨ãã¯è¦ãã¦ããã¨ä¾¿å©ãª tips ã2ã¤ã autodie ã£ã½ããã set -e ã¨ããã¨ãã³ãã³ãã®å®è¡ã«å¤±æããã¨ãã«ããã§å®è¡ãã¨ã¾ãã®ã§ä¾¿å©ã #!/bin/sh set -e perl -e 'die' echo SHOULD NOT REACH HERE ã¨ãã㨠% ./hoge.sh Died at -e line 1. % echo $? 255 ã¨ãªã£ã¦ãæå¾ã¾ã§ãããã«æ»ã«ã¾ãã è¤æ°ã®ã³ãã³ããé çªã«å®è¡ããã¨ãã«ä¾¿å©ã ãªãã以ä¸ã®ãããªæåããããã ããã§ãã ãã ã失æããã³ãã³ãã until ã¾ã㯠while ã«ã¼ãã®ä¸é¨ã§ããã if æã®ä¸é¨ã§ããã &
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}