楽しい怪しいシェルスクリプト - 第4回つくらぐ勉強会

Download 楽しい怪しいシェルスクリプト - 第4回つくらぐ勉強会

If you can't read please download the document

Upload: university-of-tsukuba-linux-user-group

Post on 24-May-2015

4.670 views

Category:

Education


2 download

DESCRIPTION

筑波大学 Linux User Group (つくらぐ) http://www.tsukuba-linux.org/

TRANSCRIPT

  • 1.

2.

  • KIM

3. 4. 5. orz 6. WebAdobery 7. 8. 9. 10.

  • Perl&PHP Python

11. Python 12. 13. Windows 14. 15. opentaka 16. 17.

18. 19.

      • shcsh ,tcsh, bash, zsh.
    • 20.

21.

  • Bash
            • Linux

Linux 22.

      • /bin/sbin/usr/bin
    • 23.
    • help
  • 24. 11typebash

25. $ type echo echo is a shell builtin $ type lv lv is /usr/bin/lv /usr/bin 26.

27. nix 28.

29. #!/bin/bash 30. echo 'Hello' 31. 32. AA

    • 33.

34.

        • 35. Clear

36.

  • $ type clear clear is /usr/bin/clear
        • clear
      • 37. echo

38.

39. 40. ASCIIESC(160x1b) 41.

  • xtermWindows

42. LinuxDECVT100VT100 43. DECVT100VT VT 44.

  • od
    • od "man od" 8

clear 45. -a 46. clear

        • ->

clear | od -a 47. ->od-> 48.

49.

  • $ clear | od -a 0000000 033ESC[HESC[2J

50. ESCbashechoe(e) 51. echo'e[He[2Jc'c 52. echo

  • echo'e[He[2Jc'

53. 54. Bashecho 55. -eOK. 56.

  • ->->->->

57. 58. 59.

60. sleepGNU sleep 61. sleep 62.

  • for (( i=0; i/dev/null 64. done 65. 66.

    67. tputecho 68. od -aVT100 69. 70. ->emacsvim 71.

    • tput cupxy

    72. xy 73. 74. tput cup 0 2 75. echo 76. echo -e 'e[ y ; e x Hc' 77. echoxy 78.

    79. 80.

    • ESC [ ? 4 7 h

    81. ESC [ ? 4 7 L 82. ESC 7 83. ESC 8 84. ->->-> 85.

    86. 87.

    88. 89. 90.

    91. 92. 93. HJKL 94. 95. 96.

    • Bashread

    97. -s -n 1 98. Bash 99. Bashsttydddd 100.

    • stty -echo

    101. sttyecho 102. 103. stty 104.

    105. rm -rf * 106. Ctrl-C 107.

    • Ctrl-CINTCtrl-/Ctrl-Z

    108. trapINTbash 109. KILLKILL 110.

    111. ESC [ A 112. ESC [ B 113. ->ESC [ C 114. ESC [ D 115. ABCDWASD 116.

    117. 118. 119. 120.