( ) 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

Similar documents
¥ƥ­¥¹¥ȥ¨¥ǥ£¥¿¤λȤ¤˽

文字コードとその実装

/* sansu1.c */ #include <stdio.h> main() { int a, b, c; /* a, b, c */ a = 200; b = 1300; /* a 200 */ /* b 200 */ c = a + b; /* a b c */ }

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

( )!?

johokiso-char.pdf.pdf


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


3 ( ) ( ) 32 8 ( ) 4 ( ) ( ) 1 ( ) 2 ( ) ( ) ( )4 ( ) 1

K-BASIC 1st: ユニケージ基礎編(前編)

随筆 私本太平記


UnixText2.pptx

1-3_二階堂.indd

9 ( ) ( ) ( ) 32 8 ( ) ( ) ( ) ( ) (15 15 ) ( ) ( )4 ( ) 1

-2-

1 1.1 PC PC PC PC PC workstation PC hardsoft PC PC CPU 1 Gustavb, Wikimedia Commons.

A

SOC Report


untitled

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè11²ó

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

untitled

csj-report.pdf

( ) ( ) ( ) 2

Excel97関数編


Automatic Processing System on Internet Text Messages Hiroyuki EDO abd Yoshiyuki SAKAMOTO 1 Return-Path: Return- Path: RFC822: Standard f

untitled

: 1/15( ): HTML web page (2) 1/18( ): (1) 1/25( ): (2) 1

Macintosh HD:Users:ks91:Documents:lect:nm2002s:nm2002s03.dvi

スライド 1


/


</ul> (XXX ) 15 ( )15 35 (XXX ) 15 ( ) [4] HTML HTML HTML HTML 1. <!--- CONTENTS_TITLE_TABLE ---> <b><font size=+1>xxx </font></b> <sm

J J J

untitled

橡Viewerの操作.PDF

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

GNU Emacs GNU Emacs

★20052G1.doc

2001 ElispExpectPerlPythonTcl videlphiemacsbrief Visual C++Nisus Writer Jeffrey E.F. Friedl PerlPython this. this _ [...] [...] [ ] 210

波野の宝・波野の地域課題

untitled

MF 型

1

Microsoft Word - ????0803.docx

untitled

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

RN_Jolt121.BOOK

X Window System X X &

名称未設定-2

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


cat A

4 Mule(Emacs)

< > = grep(/< >/, = ("AAA", "AAB", = foreach $Temp print "$Temp\n"; < > = sort = ("b"

index.dvi

はじめての帳票作成

untitled

B 20 Web

SMTP FP Mail MX /

2.4.7 \ AWK AWK......

dicutil1_5_2.book

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

FMV-TEOシリーズ(2008年6月版)製品カタログ

ネットワークカメラ カメラマネジメントツール 使用説明書

ohp.mgp

PSG共通フォーマットv110

Excel2000

付加情報をもったファイル共有システム

Networking Semester 802.3

tebiki00.dvi

211 ‚æ2fiúŒÚ

SOC Report

XML ( ) XML XML jedit XML XPath XSLT jedit JAVA VM jedit Slava Pestov GNU GPL ( ) jedit jedit ( jedit XML jed

untitled

08+11Extra

帝国議会の運営と会議録をめぐって

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

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

2 BASIC DATA DATA DATA DATA Data BASIC tbasic 1 File OS OS *2 (0, 1) OS 0,1 0,1 *2 USB OS

_unix_text_command.pptx

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


dynabookガイド

05避難シミュレーション編.PDF

オンラインによる 「電子申告・納税等開始(変更等)届出書」 提出方法

Apache-Tomcat と 冗長な UTF-8 表現 (CVE 検証レポート ) 2008 年 08 月 26 日 Ver. 0.1

(F1)

アセンブラ入門(CASL II) 第3版

<Documents Title Here>

u302.book

Microsoft PowerPoint - char-1605temp.ppt [互換モード]

Microsoft PowerPoint - 遺伝統計学夏の学校2018_Linux入門.pptx

i IHE IHE-J HIS RIS PACS CT CT CT

untitled

Transcription:

23 3 ( ( (binary file) UNIX CUI 3.1 = + 2 bit ) ( 3.1) bit bit 1 Byte=8 bit 1 Byte ASCII, JIS X 0201 ASCII(American Standard Code for Information Interchange) 7bit (;) (:) ( ) (") ) 7bit ( )

24 3 3.1 ( ) 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 Byte JIS X 0208 2 JIS JIS X 0208 3 E-mail ISO[3] 2022-JP (MTA, Message Transfer Agent) Unicode Shift JIS Microsoft MS-DOS(Windows CUI OS) MS JIS X 0208 (shift ) JIS X 0201 2 byte 1 Byte JIS X 0201 Windows Unicode OS Shift JIS

3.2 25 EUC (Extended UNIX Code) UNIX EUC EUC Linux Vine Linux EUC Unicode 4 Byte Unicode Unicode( )[4] 21 bit < 4 Byte (CJK, China-Japan-Korea) Windows UNIX OS Unicode 4 Byte (CPU Unicode Unicode 1 Byte 2 Byte, 4 Byte UTF-8, UTF-16, UTF-32 ASCII OS UTF-8 CentOS 5 UTF-8 3.2 (redirect) (pipe) 3.2.1 (P.vii ) UNIX cat soccer.txt 27 ) soccer yomi.txt 27 soccer title.txt 3 Web Web TeraTerm cat

26 3 $ cat > soccer.txt cat > > cat (<) cat Web TeraTerm [CTRL] + [z] $ cat > soccer.txt ) FW 177 73 1977/5/27 ˆZ [CTRL] [z] [1]+ Stopped cat >soccer.txt $ $ ls soccer.txt $ cat soccer.txt FIFA TM GK 184 80 1973/7/25 ( ) FW 177 73 1977/5/27 soccer yomi.txt, soccer title.txt cat 3.2.2 wc $ wc soccer.txt

3.3 grep, sort, join 27 $ cat soccer.txt wc ( ) cat soccer.txt soccer.txt wc 3.2.3 wc $ wc soccer.txt > wc_soccer.txt wc soccer.txt 3.3 grep, sort, join 3 grep sort join ( ) 3.3.1 grep grep $ grep soccer.txt DF 178 74 1975/8/8 DF 177 74 1976/11/23 MF 181 77 1976/9/1

28 3 $ grep soccer.txt DF 178 74 1975/8/8 DF 177 74 1976/11/23 MF 181 77 1976/9/1 ASCII $ grep 2$ soccer.txt GK 187 80 1979/8/2 MF 175 72 1977/1/22 2 $ $ grep /* * soccer.txt DF 178 74 1975/8/8 DF 177 74 1976/11/23 MF 181 77 1976/9/1 * ( ) [ 1-2] 1 2 $ grep /*[3-5]$ soccer.txt GK 184 80 1973/7/25 GK 185 76 1976/4/15 DF 176 69 1974/7/24 DF 177 74 1976/11/23 DF 183 78 1977/3/14 DF 187 78 1978/2/25 DF 175 67 1980/1/13 MF 178 73 1978/6/24 MF 173 72 1979/4/5 FW 182 75 1976/6/5 FW 181 75 1979/6/4 FW 177 74 1980/5/4 ASCII 3 5 (.) ( )

3.3 grep, sort, join 29 $ grep /.[1-2]$ soccer.txt MF 175 72 1977/1/22 FW 173 67 1980/4/11 $ grep /*[1-2]$ soccer.txt GK 187 80 1979/8/2 MF 181 77 1976/9/1 MF 175 72 1977/1/22 FW 173 67 1980/4/11 3.3.2 sort sort soccer yomi.txt (-k2 ) $ sort -k2 soccer_yomi.txt ( ) -r $ sort -r -k2 soccer_yomi.txt 3.3.3 join join $ join -j1 2 -j2 1 -o 1.1 1.2 2.2 1.3 1.4 1.5 1.6 soccer.txt socc er_yomi.txt GK 184 80 1973/7/25 ( ) FW 177 73 1977/5/27 soccer.txt soccer yomi.txt -o

30 3 soccer.txt 1 soccer yomi.txt 2 1.1 soccer.txt 2.2 soccer yomi.txt 2 (= soccer.txt 1 ) 1.3 soccer.txt 3 A soccer.txt soccer yomi.txt soccer title.txt soccer meibo.txt ( 3.2 ) 3.2 soccer meibo.txt 3.4 ( ) UNIX (./) (../) soccer meibo.txt unix05

3.5 sed 31 unix05 unix05 $ ls../unix04 unix05 unix04 ( ) soccer_meibo.txt ( ) $ cp../unix04/soccer_meibo.txt./ unix04 succer_meibo.txt $ cat soccer_meibo.txt soccer_meibo.txt 3.5 sed sed sed $ sed grep MF $ sed s/mf/ / soccer_meibo.txt FIFA TM 181 75 1979/9/18 ( ) FW 177 73 1977/5/27 soccer meibo.txt 1,3d (;) $ sed 1,3d;s/MF/ / soccer_meibo.txt 181 75 1979/9/18 ( ) FW 177 73 1977/5/27 $ sed 1,3d;s/ /Y=t/ soccer_meibo.txt $ sed 1,3d;s/ /Y=t/g soccer_meibo.txt

32 3 3.6 awk ( ) CPU *1 C, C++, Fortran CGI(Common Gateway Interface) awk, Web PHP, Ruby Perl 3.7 awk C /UNIX C/C++ Perl Perl awk.awk.awk 3 BEGIN { } { } END{ } BEGIN{ }, END{ } { } *1 Java.NET ( )

3.7 awk 33 awk : 1: BEGIN{print "--- ---Y=n";} 2: {print $1; print $5; print $6; count++;} 3: END{print "Y=n ", count, " "; print "--- ---Y=n";} $ sed 1,3d soccer_meibo.txt awk -f sample.awk --- --- 181 75 177 73 26 --- --- B 1. (,) CSV (.csv) sed soccer meibo.txt soccer meibo.csv sed $ sed 1,3d; ( ); soccer_meibo.txt, MF,,, FW,, $ sed 1,3d; ( ); soccer_meibo.txt > soccer_meibo.csv 2. awk soccer meibo.txt awk ave.awk sed ave.awk

34 3 $ sed "1,3d" soccer_meibo.txt awk -f ave.awk MF FW : 178.923 : 73.0385 3 awk