jus & USP‹®¼…±‚¬ ‚·‚§ƒ«ƒ¯ƒ³ƒ©‚¤ƒƒ¼‹‰¼·¼@é–¢è¥ï¼ˆç¬¬11›‍‚·‚§ƒ«è¸‹‰¼·¼ï¼‰

  • View
    5.141

  • Download
    4

Embed Size (px)

DESCRIPTION

2014/6/14 @ECCコンピュータ専門学校

Text of jus & USP‹®¼…±‚¬...

  • 1. . . . . . . . . . . . . . . . . . . . . . AWKsed . . . .. . . @ 11 : UNIX & USP : ECC USP / June 14, 2014 June 14, 2014 1 / 40
  • 2. . . . . . . . . . . . . . . . . . . . . . AWKsed 14:00-14:05: 14:05-14:30: AWKsed 14:30-14:40: 14:40-16:00: 16:15-17:35: 17:35-17:45: June 14, 2014 2 / 40
  • 3. . . . . . . . . . . . . . . . . . . . . . AWKsed 36 USP USP June 14, 2014 3 / 40
  • 4. . . . . . . . . . . . . . . . . . . . . . AWKsed : 1 CMS CMS CMS CGI 7/1 .. Link June 14, 2014 4 / 40
  • 5. . . . . . . . . . . . . . . . . . . . . . AWKsed 11 CLIcommand line interface GUI OS June 14, 2014 5 / 40
  • 6. . . . . . . . . . . . . . . . . . . . . . AWKsed 14:05-14:30: AWKsed AWKsed June 14, 2014 6 / 40
  • 7. . . . . . . . . . . . . . . . . . . . . . AWKsed UNIX iptables, service, reboot, shutdown, ... grep, echo, cat, seq, ... AWKsed June 14, 2014 7 / 40
  • 8. . . . . . . . . . . . . . . . . . . . . . AWKsed UNIX M. Hauben and R. Hauben: Netizens: On the History and Impact of Usenet and the Internet, Wiley-IEEE, 1997. AWKsed June 14, 2014 8 / 40
  • 9. . . . . . . . . . . . . . . . . . . . . . AWKsed grep Unix AT&T Doug McIlroy Unix ed(1) : Dennis Ritchie ed AWKsed June 14, 2014 9 / 40
  • 10. . . . . . . . . . . . . . . . . . . . . . AWKsed Ritchie grep ed g/re/p grep McIlroy grep AWKsed June 14, 2014 10 / 40
  • 11. . . . . . . . . . . . . . . . . . . . . . AWKsed ed grep grep 1 1 cat | grep | sed McIlroy grep UNIX grep AWKsed June 14, 2014 11 / 40
  • 12. . . . . . . . . . . . . . . . . . . . . . AWKsed grep sed(1): ed awk(1): + yacc(1), lex(1): GNU core utilities AWKsed June 14, 2014 12 / 40
  • 13. . . . . . . . . . . . . . . . . . . . . . AWKsed grep Unix OS McIlroy Unix AWKsed June 14, 2014 13 / 40
  • 14. . . . . . . . . . . . . . . . . . . . . . AWKsed sed, AWK Unix sed: ed grep: grep UNIX OS AWKsed sed, AWK June 14, 2014 14 / 40
  • 15. . . . . . . . . . . . . . . . . . . . . . AWKsed sed Stream EDitor . . . .. . . ###### uedambp:~ ueda$ echo | sed s///g ###### uedambp:~ ueda$ seq 1 5 | sed 2,4s/./a/g 1 a a a 5 ###### uedambp:~ ueda$ seq 1 5 | sed -n 3,$p 3 4 5 AWKsed sed, AWK June 14, 2014 15 / 40
  • 16. . . . . . . . . . . . . . . . . . . . . . AWKsed . . . .. . . ###### ###Mac gsed brew install gnu-sed uedambp:~ ueda$ echo | gsed s//&n/g ### tr ### uedambp:~ ueda$ echo | gsed s//&n/g | tr -d n uedambp:~ ueda$ AWKsed sed, AWK June 14, 2014 16 / 40
  • 17. . . . . . . . . . . . . . . . . . . . . . AWKsed AWK Aho, Weinberger, Kernighan AWK grep . . . .. . . ###grep ### uedambp:~ ueda$ seq 1 10 | awk /1/ 1 10 uedambp:~ ueda$ seq 1 10 | awk /[240]/ 2 4 10 AWKsed sed, AWK June 14, 2014 17 / 40
  • 18. . . . . . . . . . . . . . . . . . . . . . AWKsed . . . .. . . ###### uedambp:~ ueda$ echo 4.2 1.1 | awk {print $1*$2} 4.62 uedambp:~ ueda$ echo {1..10} | awk {print $2+$5} 7 ###### uedambp:~ ueda$ seq 1 10 | awk /[240]/{print $1*2} 4 8 20 ###### uedambp:~ ueda$ seq 1 10 | awk /[240]/{print $1 ""} 2 4 10 ###### uedambp:~ ueda$ echo {1..10} | awk {for(i=1;i