第28回シェル芸勉強会へようこそ

7b687d32752421ed7bdc2428e5e4b8e6?s=47 papiron
April 22, 2017

 第28回シェル芸勉強会へようこそ

最初にイントロで話す予定が、時間配分の都合で最後になった。
イベントレポートブログはこちら。
http://papiro.hatenablog.jp/entry/2017/04/24/002533

7b687d32752421ed7bdc2428e5e4b8e6?s=128

papiron

April 22, 2017
Tweet

Transcript

  1. ୈ28ճγΣϧܳษڧձ ΁Α͏ͦ͜ usp༑ͷձ ˏpapiron

  2. ·ͣ͸ޚྱ ͝ࢀՃ͍͖ͨͩ ͋Γ͕ͱ͏͍͟͝·͢

  3. ෱ԬαςϥΠτ ͓͔͛͞·Ͱ ࠓճͰୈ12ճ໨

  4. ۙگ • ͳΜ͔๩͔ͬͨ͠ • ๭Ծ૝؀ڥߏஙͱ͔ • FreeBSDͷP2Vͱ͔ • αʔόܥΠϯϑϥΤϯδχΞʁ

  5. ۙگ • ݱ࣮ಀආ͍ͨ͠ • 10೥ͿΓʹόΠΫʹڵຯ • ৐ͬͯͨόΠΫ͸طʹઈ൛ • YAMAHA SRX600

    • ϏοάγϯάϧͰϚχΞοΫ http://moto.webike.net/bike/service/890/
  6. ۙگ • ໘ന͍όΠΫ͕৽ൃച • খഉؾྔϩʔυεϙʔπ • SUZUKI GIXXER 150cc •

    Ͳ͏ݟͯ΋एऀ͕λʔήοτʂʁ • Φοαϯ͕৐ͬͯ΋͍͍Ͱ͔͢ʁ http://www1.suzuki.co.jp/motor/product/gsx150l7/top
  7. ۙگ • Windows10 Creators Update • Bash on WindowsͷߋͳΔվળ •

    tmuxɺsshɺscpͳͲ͕ਖ਼͘͠ಈ͘ • vimɺemacsɺgitͳͲ΋αϙʔτ • INOTIFYαϙʔτ • Windowsͱͷޓ׵ӡ༻ੑ޲্ https://japan.zdnet.com/article/35099706/
  8. ۙگ Microsoft ΩςϚε

  9. ۙگ • ۝۝ͷܭࢉ݁Ռ͕36௨Γ͔͠ͳ͍ • γΣϧܳͱRubyܳͰݕূ • irb (Interactive Ruby) •

    RubyͷϝιουνΣʔϯ https://togetter.com/li/1098244 https://twitter.com/papiron/status/852138532827279360
  10. ۙگ γΣϧܳ https://twitter.com/eban/status/850601742492344320

  11. ۙگ $ echo {1..9}\*{1..9}\; 1*1; 1*2; 1*3; 1*4; 1*5; 1*6;

    1*7; 1*8; 1*9; 2*1; 2*2; 2*3; 2*4; 2*5; 2*6; 2*7; 2*8; 2*9; 3*1; 3*2; 3*3; 3*4; ……… 8*4; 8*5; 8*6; 8*7; 8*8; 8*9; 9*1; 9*2; 9*3; 9*4; 9*5; 9*6; 9*7; 9*8; 9*9; $ echo {1..9}\*{1..9}\; | bc | tail -n 5 45 54 63 72 81 $ echo {1..9}\*{1..9}\; | bc | sort -n | uniq | wc -l 36 γΣϧܳ ղઆ
  12. ۙگ Rubyܳ https://twitter.com/papiron/status/852138532827279360

  13. ۙگ $ irb irb(main):001:0> (1..9).to_a => [1, 2, 3, 4,

    5, 6, 7, 8, 9] irb(main):002:0> (1..9).to_a.repeated_combination(2).to_a => [[1, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 2], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [3, 3], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [4, 4], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [5, 5], [5, 6], [5, 7], [5, 8], [5, 9], [6, 6], [6, 7], [6, 8], [6, 9], [7, 7], [7, 8], [7, 9], [8, 8], [8, 9], [9, 9]] irb(main):003:0> (1..9).to_a.repeated_combination(2).collect{|a| a[0]*a[1]} => [1, 2, 3, 4, 5, 6, 7, 8, 9, 4, 6, 8, 10, 12, 14, 16, 18, 9, 12, 15, 18, 21, 24, 27, 16, 20, 24, 28, 32, 36, 25, 30, 35, 40, 45, 36, 42, 48, 54, 49, 56, 63, 64, 72, 81] irb(main):004:0> (1..9).to_a.repeated_combination(2).collect{|a| a[0]*a[1]}.uniq.size => 36 Rubyܳ ղઆ
  14. ษڧձͷझࢫ ͱʹ͔͘ ίϚϯυϥΠϯͱ ςΩετॲཧΛ ࣮ફͰ஁͑Δʂ

  15. γΣϧͷػೳ • ίϚϯυͷ࣮ߦ • ؀ڥม਺ɺPATHɺҾ਺ɺฦΓ஋ • ϓϩηε੍ޚ • όοΫάϥ΢ϯυɺγάφϧ •

    σʔλͷೖग़ྗ੍ޚ • ඪ४ೖྗɺඪ४ग़ྗɺඪ४Τϥʔग़ྗ • ϑΝΠϧγεςϜ • ύΠϓɺϦμΠϨΫτ
  16. γΣϧͷػೳ • ΠϯλϥΫςΟϒػೳ • ϓϩϯϓτ • historyɺิ׬ • alias •

    ϓϩάϥϛϯάػೳ • ม਺ɺؔ਺ • ੍ޚߏ଄ɺΤϥʔॲཧ • σόοάग़ྗ
  17. γΣϧͷػೳ γΣϧʹ਌͠ΜͰ ίϯϐϡʔλʹ ؤுͬͯ΋Β͓͏ʂ

  18. ίϚϯυΛ஌Δ •ςΩετॲཧܥ •୯ػೳ •catɺgrepɺsortɺuniqɺ tailɺheadɺtrɺpasteɺ diffɺcomm •ଟػೳ •sed •ϑΝΠϧγεςϜܥ •lsɺfindɺstat

    •γʔέϯεੜ੒ •seqɺjotɺyes •ͦͷଞ •xargsɺtimeɺdateɺteeɺ echoɺprintfɺbcɺcurl •࠷ऴฌث •awk •perlɺruby (-alne)
  19. Open usp Tukubaiͷ঺հ • TukubaiίϚϯυͬͯʁ • ୯ػೳͷίϚϯυ܈ • طଘͷUNIXίϚϯυʹ଍Γͳ͔ͬͨಓ۩ •

    ୺຤Ͱͷσʔλॲཧ͕໘ന͘ͳΔ
  20. Open usp Tukubaiͷ঺հ •೔෇࣌ࠁॲཧ •mdateɺcalclockɺyobi •֤छूܭ •gyoɺcountɺsmܥɺmap •ϑΟʔϧυ੾ग़ •selfɺdelf Open

    usp TukubaiίϚϯυϚχϡΞϧ https://uec.usp-lab.com/TUKUBAI_MAN/CGI/TUKUBAI_MAN.CGI?POMPA=LIST •ߦྻม׵ •tarrɺyarrɺtateyoko •σʔλ݁߹ •loopjɺloopxɺjoinܥ •ͦͷଞ •getfirstɺjuniɺmojihame
  21. γΣϧܳؔ࿈৘ใ • USP༑ͷձ • https://www.usptomo.com • UEC - use engineers'

    community site • https://uec.usp-lab.com/ INFO/CGI/INFO.CGI? POMPA=LIST • ্ాϒϩάʢձ௕ʣ • https://blog.ueda.asia • େνΣοΧʔɿγΣϧܳ ਓͨͪ • https://daichkr.hatelabo.jp/ antenna/960679194075891200 • ஓ੿ϒϩά • http://papiro.hatenablog.jp