Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ãã¦ãã¿ãªããã¯ãVimãã¨ããã¨ãã£ã¿ã¼ããåç¥ã§ããããï¼ ããããªãããµã¼ãã¼é¢ä¿ãããã°ã©ãã³ã°é¢ä¿ã«æºãã£ã¦ããã®ã§ãããååãããã¯èãããã¨ãããã§ãããã ã§ããå®éã«ã¯Vimãã¨ããããã®ãããããªããã¾ãã¯é£ãããã¦Vimã使ãã®ãæ«æãã¦ãã¾ã£ãã ä»åã¯ãããªäººã®çºã®è¨äºãæ¸ãã¦ãããã¨æãã¾ãã ã¾ããvimã«ã¯ã©ããªå°è±¡ããæã¡ã§ããããï¼ å°ãã§ãVimã¨ããã¨ãã£ã¿ã¼ã触ã£ããã¨ã®ããæ¹ãªãããæãã§ããããæä½ãããããªãã¨ã 確ãã«vimã¯ãã¦ã¹ãä¸å使ããªããè¨ã£ã¦ãã¾ãã°ãã¦ã¹ã使ãè¨è¨ãããã¦ããªãã¨ãã£ã¿ã¼ã§ãã ãã¨ãã¨Vimã¯CUI(ã³ãã³ãã»ã¦ã¼ã¶ã¼ã»ã¤ã³ã¿ã¼ãã§ã¼ã¹)ã§ä½¿ããããã¨ãåæã«è¨è¨ãããviã¨ããã¨ãã£ã¿ã¼(vimã®åä¸) ãè¶ ããï¼æ¹è¯ã®ï¼ããã«ä½ããã¾ããã ãã®ããä»ã¾ã§ã®Atom SublimeText VisualS
ãã®è¨äºã¯ Shell Script Advent Calendar 2015 10æ¥ç®ã®è¨äºã§ãã 9æ¥ç®ã®è¨äºã¯ryoana14ããã®éºããawkã®ä¸çã§ããã Shellã¹ã¯ãªããããã¤ã¾ã§çµã£ã¦ãã¾ã¨ãã«æ¸ããªãMasWagã§ããæ¸ããªããªãã«ã人ã®æ¸ãã(æã®èªåãæ¸ãããã®ãå¤ãå«ã)ã¹ã¯ãªãããè¦ã¦ããã¯é ããªã¨æããã¨ã¯ãã¾ã«ããã¾ããæ¸ãæ¹ã®ã³ãã¨ãããèãæ¹ãå¹¾ã¤ãããã¨æãã®ã§ã¾ã¨ãã¦ã¿ããã¨æãã¾ããåºæ¬çãªè©±ãªã®ã§å¤åShellã¹ã¯ãªãããããã¾ãæ®æ®µæ¸ããªã人åãã ã¨æãã¾ããShellã¯Bashãåæã¨ãã¦æ¸ãã¾ããzshã ã¨ãã£ã¨è²ã ã§ããã®ãããããªãã§ããç´°ãã説æã¯(ãããªã«ç´°ãããªãã¦ãï¼)çãã¦ããã®ã§é©å®manãinfoãåç §ããã¨è¯ãã§ãããã forkãæ¸ãã Shellã§ã³ãã³ãã使ãã¨ãããã¨ã¯å¤ãã®å ´åããã»ã¹ãforkãã¦ãããã¨ã«ãª
ããã¯ã¾ãããã¢ãã¯ãªã»ã»ã»ã ãã©ã¦ã¶ãã¿ã¼ããã«ã«ã¿ãã¦ã¦CUIã§Twitterãæä½ã§ãããµã¼ãã¹ãTweetshã ã ãã¦ã¹ã§ããããã¯ãªãã¯ããããããã¼ãã¼ãããã³ãã³ãæã¡è¾¼ã¿ããï¼ã¨ãã人ã¯ãããã ãããã ã¨ããããmanã¨æã¦ã°ããã¥ã¢ã«ãåºã¦ããã®ã§ãããåèã«ãã¦ã¿ã¦ã»ããã å¿ ããã使ããããããã§ã¯ãªãããããããã®ã好ããªäººãããã ãããä¼æ¥ã«ããã£ã¦ã¿ãã®ãè¯ãããã§ããã
UNIXãLinuxã®ã¨ãã¹ãã¼ãã«ãªãã®ã«é¿ãã¦éããªãã®ããBashã«ä»£è¡¨ãããã³ãã³ãã©ã¤ã³ã·ã§ã«ã«ããæä½ã ãããã§æ¬è¨äºã§ã¯ããBashã®ã«ã¹ã¿ãã¤ãºããã·ã§ã«ã¹ã¯ãªããã®é«çãã¯ããã¯ããBash以å¤ã®é«æ©è½ã·ã§ã«ãã®3ã¤ã«ã¤ãã¦ãSourceForge.JP Magazineã§éå»ã«æ²è¼ããã解説è¨äºãç´¹ä»ããã Bashãã«ã¹ã¿ãã¤ãºãã¦ä½¿ãããªã Bashã¯é常ã«ã«ã¹ã¿ãã¤ãºã®å¹ ãåºããã¾ãã¡ãã£ã¨ããæ¹è¯ãç°¡åãªã·ã§ã«ã¹ã¯ãªããã®å©ç¨ã«ããã大ããä½æ¥å¹çãæ¹åãããããã§ã¯ãBashã®ã«ã¹ã¿ãã¤ãºãã¯ããã¯ã解説ããè¨äºãç´¹ä»ããã ã³ãã³ãã©ã¤ã³ã§ã·ã§ã«ã®ã¨ã¤ãªã¢ã¹ã¨é¢æ°ã使ã£ã¦ä½æ¥ãå¹çåãã GNU/Linuxã·ã¹ãã ãæ大éã«æ´»ç¨ããã«ã¯ããã¯ãã³ãã³ãããã³ããã¨ã·ã§ã«ã¹ã¯ãªããã¸ã®ç¿çãæ¬ ãããªããã¨ã¯ãããããããå¦çã¯ãªãã¹ãææ©ãæ¸ã¾ããããã®ã ãæ¬
whileæ 使ç¨ä¾ â â å¤æ°Aã«ï¼ãå ¥ãã¦ããã¦ãwhileæã®æ¡ä»¶ãï¼ï¼ä»¥ä¸ãªãçã«ãã¦ãã å¤æ°Aãï¼ï¼ä»¥ä¸ã§ããã°ããã¾ã ï¼ï¼ããå°ãããã¨è¡¨ç¤ºãããã exprã§å¤æ°Aã«ï¼ã¥ã¤è¶³ãã¦ããã®ã§ãå¤æ°Aã10ã«ãªãã°whileæãæããã while_test01.sh #!/bin/sh A=1 while [ $A -lt 10 ] do echo "ã¾ã ï¼ï¼ããå°ãã" A=`expr $A + 1` done echo "ï¼ï¼ãè¶ ãã¾ããã" å®è¡ä¾ $ ./while_test01.sh ã¾ã ï¼ï¼ããå°ãã ã¾ã ï¼ï¼ããå°ãã ã¾ã ï¼ï¼ããå°ãã ã¾ã ï¼ï¼ããå°ãã ã¾ã ï¼ï¼ããå°ãã ã¾ã ï¼ï¼ããå°ãã ã¾ã ï¼ï¼ããå°ãã ã¾ã ï¼ï¼ããå°ãã ã¾ã ï¼ï¼ããå°ãã ï¼ï¼ãè¶ ãã¾ããã â ãªã¢ã¼ããã¹ãã«pingãéãç¶ãã while_test02.sh #!/bi
Landscape ããããã¼ã¸ | < åã®æ¥ 2004-03-27 2004-03-28 次ã®æ¥ 2004-03-30 > Landscape - ã¨ã³ã¸ãã¢ã®ã¡ã¢Â 2004-03-28 ã·ã§ã«ã®ãªãã¤ã¬ã¯ãã«ã¾ã¤ãã失æ å½ãµã¤ãå ã Google æ¤ç´¢ã§ãã¾ã * ã·ã§ã«ã®ãªãã¤ã¬ã¯ãã«ã¾ã¤ãã失æãã®è¨äºã®ç´ãªã³ã¯URL: Permlink | ãã®è¨äºãå±ããã«ãã´ãª: [bash] ã·ã§ã«ã®ãªãã¤ã¬ã¯ãã«ã¤ãã¦ã®ç解ãä¸ååãªããã«ãã£ã¦ãã¾ã£ã失æã æ¨æºåºåãæ¨æºã¨ã©ã¼åºåã /dev/null ã«æ¨ã¦ããã¨ããééãã¦ä»¥ä¸ã®ããã«ãã¦ãã¾ããã¨ãã¨ãã©ããã£ããæè¿ã¯ãããªããªã£ããã # ééã $ command 2>&1 >/dev/nullããã 㨠command ã®æ¨æºåºå㯠/dev/null ã«åããããããcommand ã®æ¨æºã¨ã©ã¼åºåã¯ç»é¢ã«åãã¦ã
ã»bashããsqlplusã¸å¼æ°ã渡ãã¦æ»ãå¤ãåå¾ãã¾ãã ã»sqlplusã®çµäºã§ãquit æååãã¨ãããã¨ã©ã¼ã«ãªãã®ã§ ä¸éãã¡ã¤ã«ãçµç±ããã¾ããã ã»ä¸éãã¡ã¤ã«çµç±ã®æ¹æ³ã¯ããªãç¡çãããªæ°ããã¾ãã ããå°ãè¯ãæ¹æ³ãç¥ãããã§ãã #!/bin/sh # TMP_FILE="./hoge.tmp" # sqpluså¦ç function printSqlplus { ${ORACLE_HOME}/bin/sqlplus -s scott/tiger >>EOF < /dev/null SET HEADING OFF SET ECHO OFF SET FEEDBACK OFF SET PAGESIZE 0 SET TRIMSPOOL ON SET TERMOUT OFF SET LINESIZE 1000 SPOOL ${TMP_FILE}; SELECT 'Hell
LAST UPDATED Jul/21/2007 æ°æ å ± Cygwinã®å ¬å¼ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã«screen-4.0.3ãç»é²ããã¾ãããscreenã¤ã³ã¹ãã¼ã«ã¡ã¢ Cygwinç·¨ (2007/07/21) screen-4.0.3ããªãªã¼ã¹ããã¾ãããscreenã¤ã³ã¹ãã¼ã«ã¡ã¢ (2006/10/23) screen-4.0.2ç¨ã®éå ¬å¼ãããã1ã¤è¿½å ãã¾ãã(cjkæåå¹ èª¤èªè)ãscreenã¤ã³ã¹ãã¼ã«ã¡ã¢ (2006/06/09) 2ch UNIXæ¿ screenã¹ã¬ æ´æ° (2006/05/29) screen-4.0.2ç¨ã®éå ¬å¼ãããã2ã¤æ²è¼ãã¾ãããscreenã¤ã³ã¹ãã¼ã«ã¡ã¢ (2005/01/22) screen-4.0.2ããªãªã¼ã¹ããã¾ãããscreenã¤ã³ã¹ãã¼ã«ã¡ã¢ (2003/12/07) ãã®ãã¼ã¸ã¯ãã£ããä½? screenã¯UNIXã©ã¤ã¯ãªO
ãã°ããåãããã³ãã³ãã®çµäºã¹ãã¼ã¿ã¹ãããã³ããã®è²ã«åæ ãããããã«ãã¦ããã çµäºã¹ãã¼ã¿ã¹ã¨ã¯ Cè¨èªãªã int main(int argc, char* argv[]) { ... return 0; } ãã® return ãã¦ãã 0 ãçµäºã¹ãã¼ã¿ã¹ããã®æ´æ°å¤ã®ä¸ä½ 8bit ãããã»ã¹ã®çµäºæã«è¦ª (ãã®ããã»ã¹ãèµ·åããããã»ã¹) ã«ãããã çµäºã¹ãã¼ã¿ã¹ã®æå®æ¹æ³ã¯ãããããããCè¨èªã®å ´å main é¢æ°ã®æ»ãå¤ä»¥å¤ã«ã exit é¢æ°ã®å¼æ°ã§ãæå®ã§ãããRuby, Perl ã®å ´åããããã main é¢æ°ã¯ç¡ã㦠exit é¢æ°ã«å¼æ°ãä¸ããæ¹æ³ã ããã¤ãããã ãã®å¤ã¯ã·ã§ã«ä¸ã§ $? ã§åç §ã§ããã % perl -e 'exit(0xdead)'; echo $? 173 % æ £ä¾ã¨ãã¦ãæ£å¸¸çµäºã®ã¨ã㯠0 ãè¿ããã¨ã«ãªã£ã¦ããã % ls
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}