Windows Cygwin Mac *1 Emacs Ruby ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2

Similar documents
GNU Emacs GNU Emacs

スパコンに通じる並列プログラミングの基礎

スパコンに通じる並列プログラミングの基礎

X Window System X X &

スパコンに通じる並列プログラミングの基礎


Emacs Ruby..

UNIX

tebiki00.dvi

untitled

¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~ alse

UNIX

Windows [ ] [ (R)..] cmd [OK] Z:\> mkdir progi [Enter] \ ) mkdir progi ) (command ) help [Enter] help ( help ) mkdir make directory Windows ) mkdir mk

unix.dvi

UNIX version Copyright c Daikoku Manabu 1 UNIX 1.1 UNIX UNIX UNIX OS Windows UNIX UNIX UN

LAN Copyright c Daikoku Manabu This tutorial is licensed under a Creative Commons Attribution 2.1 Japan License

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

273? C

2 Windows 10 *1 3 Linux 3.1 Windows Bash on Ubuntu on Windows cygwin MacOS Linux OS Ubuntu OS Linux OS 1 GUI Windows Explorer Mac Finder 1 GUI

Microsoft Word - C.....u.K...doc

コンピュータ概論

本 日 の 授 業 内 容 最 低 限 覚 えるべきUNIXコマンド pwd, ls, mkdir, cd, cp, rm, mv テキストエディタの 簡 単 な 使 い 方 テキストエディット, Jedit X,Emacs C 言 語 プログラミングの 初 歩 hello, world を 画 面

bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows ˆ Windows10 64bit Wi

Ruby Ruby ruby Ruby G: Ruby>ruby Ks sample1.rb G: Ruby> irb (interactive Ruby) G: Ruby>irb -Ks irb(main):001:0> print( ) 44=>

Informatics 2010.key

A

parser.y 3. node.rb 4. CD-ROM

Microsoft Office PowerPoint 2007 セミナーテキスト基礎編 講習の手引き Microsoft Office PowerPoint 2007 Office Professional 2007 PowerPoint 2007 PowerPoint 2007 PowerPoi

情報の分析 1. Linux ツールの活用

dynabookガイド

B 20 Web

Informatics 2014

syspro-0405.ppt

( ) 1 Windows HTML ( ) ( ) ( ) WWW 10 ( )

r1.dvi

PC STATION S200L seriesファーストステップガイド

untitled

Informatics 2015

2 1. Ubuntu 1.1 OS OS OS ( OS ) OS ( OS ) VMware Player VMware Player jp/download/player/ URL VMware Plaeyr VMware

/

2.2 Sage I 11 factor Sage Sage exit quit 1 sage : exit 2 Exiting Sage ( CPU time 0m0.06s, Wall time 2m8.71 s). 2.2 Sage Python Sage 1. Sage.sage 2. sa

-2 gnuplot( ) j ( ) gnuplot /shell/myscript 1

Linux XScreenSaver T020074

p.1.24

超初心者用

Java updated


C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç

PowerPoint Presentation

図 1: 場所をクリックし ホームフォルダーをクリックすると (上図) ホーム フォルダー下にあるファイルやディレクトリの一覧を見ることができる 下図 2

情報処理概論(第二日目)

オンラインマニュアル

¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~ alse

Microsoft PowerPoint - スハ?コン利用入門_ _UNIX利用の基礎知識.pptx

練習 4 ディレクトリにあるファイルを直接指定する (cat) cat コマンドを使う (% cat ファイル名 ) と ファイルの内容を表示できた ファイル名のところにパス名を使い ディレクトリ名 / ファイル名 のように指定すると ディレクトリ内にあるファイルを直接指定できる 1 % cat _

¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~ alse

情報処理概論(第二日目)

kiso2-01.key

Alien Skin Software, LLC

OS Windows Mac OS Windows Mac OS Windows XP Mac OS X OS Windows 95 Mac OS

FileMaker Pro 8.5 Tutorial

a0postercls? Gerlinde Kettl, Matthias Weiser T E Xmacro wwwctanorg/tex-archive/macros/latex/contrib/a0poster LAT E X

スライド 1

情報処理概論(第二日目)


OS fvwm fluxbox

2/14 ) USB ( ( ) [ ( )] ) ( 3.

C C UNIX C ( ) 4 1 HTML 1

I 2 tutimura/ I 2 p.1/??

Unix * 3 PC 2 Linux, Mac *4 Windows Cygwin Cygwin gnuplot Cygwin unix emulator online gnuplot *5 matplotlib *6 SuperMongo *7 gnuplot gnuplot OS *8 Uni

Microsoft PowerPoint - InfPro_I6.pptx

C

I 1 1 ( *) ( *) ex1-1.rb ) 2 CGI

新・明解Java入門

01-24C

<4D F736F F F696E74202D E3F FC96E55F F554E CC8AEE D8EAF2E B8CDD8AB B83685D>

( 2 / 35


A/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B

はじめての帳票作成

VLD Kazutoshi Kobayashi

( ) Shift JIS ( ) ASCII ASCII ( ) 8bit = 1 Byte JIS(Japan Industrial Standard) X 0201 (X ) 2 Byte JIS ISO-2022-JP, Shift JIS, EUC 1 Byte 2 By

45 VBA Fortran, Pascal, C Windows OS Excel VBA Visual Basic Excel VBA VBA Visual Basic For Application Microsoft Office Office Excel VBA VBA Excel Acc

できるん?! セキュリティ 〜ハードディスクの情報消去〜 改訂第三版

橡マニュアル1999.PDF

002-2

unix15-script2_09.key

スライド 1

For_Beginners_CAPL.indd

2

II ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 D

K227 Java 2

BASIC / / BA- SIC Web 1/10 1/10 / / JavaScript

(2 Linux Mozilla [ ] [ ] [ ] [ ] URL 2 qkc, nkc ~/.cshrc (emacs 2 set path=($path /usr/meiji/pub/linux/bin tcsh b

I #2 : ( 8-13), () URL : j inoue/prog2007/prog2007.html

PBASIC 2.5 PBASIC 2.5 $PBASIC directive PIN type New DEBUG control characters DEBUGIN Line continuation for comma-delimited lists IF THEN ELSE * SELEC

1

GUI GUI Ruby GUI Ruby/Tk Ruby/Gtk GUI Ruby GUI


Transcription:

September 2016 1

Windows Cygwin Mac *1 Emacs Ruby 1 1.1 ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2

~/16:00:20> ls 2 2 ls ls -a ~/16:00:20> ls -a ls -a ls (all) > > ls -a 1.2.1 > mkdir abc > ls > ls -l > mv abc xyz 3

> ls > rmdir xyz > ls mkdir, ls, mv, rmdir abc xyz (arguement) mkdir abc mv 2 mv ls -l "-l" (option) UNIX/Emacs CUI GUI UNIX CUI (Character User Interface) character GUI(Graphical User Interface) 4

2 2.0.1 100 GB( 1 ) 100 KB ( 10 ) 100 GUI CUI 1 *4 ( 3(a)) 3 (a) (b) Home Home PC Win Mac PC Foods Foods Fruits Banana Win Mac Fruits Banana (a) (b) 3 (a) (b) *4 5

2.1 Cygwin UNIX Windows PC home 2.1.1 *5 1. Windows Mac Cygwin C:Y=home Mac 2. Cygwin 3. > pwd > mkdir PC > ls > cd PC > pwd > ls > mkdir Mac > ls *5 (sub) Subway 6

> cd Mac > pwd > ls > cd.. > mkdir Win > ls > cd Win > pwd > cd../.. > pwd 4. UNIX 5. > cd > rm -rf PC 7

3 (editor) GNU Emacs( ) 3.1 & > emacs & Emacs 3.2 sample1.rb C-x C-f 8

scratch 1. Ctrl x 2. Ctrl f 3. (3.4 ) Find file: ~/ sample1.rb Crtl ( ) Emacs Windows Alt ( ) Mac command *6 C-x M-x Ctrl x Alt x 3.3 sample1.rb sample1.rb # sample1.rb # My first Ruby. puts "Hello Ruby!" 3.4 *6 Esc 9

3.5 C-x C-s Wrote: ~/sample1.rb Cygwin sample1.rb ls > ruby sample1.rb 10

Emacs C-x C-c 3.6 1 : C-g C-g Quit : C-k C-k C-k : C-y C-y : C-k C-y C-k C-y C-y : [Tab] ( ) [Tab] : C-_ C-_ C-s 11

3.7 12

4 Ruby Ruby 4.1 omikuji.rb puts "Omikuji : To quit: Q RET" while s = gets break if s =~ /[Qq]/ case rand(10) when 0 print "Happiest!" when 1.. 7 print "Happy" else print "Awful!" end end ls 4.2 Ruby *7 > ruby omikuji.rb Q rand(10) 0 9 10%, 70%, 20% *7 C Java 13

4.3 4.3.1 # lovelove.rb 1000.times do print "love!" end lovelove.rb C-x C-f 4.3.2 # clock.rb while true puts Time.now sleep 1 end Cygwin C-c 4.3.3 0 1 2 # nim.rb my_number = rand(2) puts "Hi! Guess my number. (0,1)" print "> " str = gets if str.empty? 14

puts "bye" end your_number = str.to_i if your_number > 1 then puts "Input 0 or 1!" elsif your_number == my_number then puts "You won!" else puts "Hm, my number is #{my_number}. wwwww" end 4.3.4 # countdays.rb wdays = ["Sun","Mon","Tues","Wednes","Thurs","Fri","Satur"] if ARGV.size < 3 puts "Input your birthday. YYYY MM DD" puts "Example: 1998 11 03" exit end y,m,d = ARGV.map{ v v.to_i } date = Time.local(y,m,d) nw = date.wday puts "You were born on #{wdays[nw]}day." > ruby countdays.rb 1998 11 3 15