Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
awk入門        いかたけ
“awk”?テキスト処理ツールUNIX/Linuxコマンドスクリプト言語
“awk”?When:1977Who:Alfred Vaino Aho,    Peter Jay Weinberger,    Brian Wilson Kernighan
How to use ?UNIX/Linux コマンド> awk script> awk script < textfile> awk -f scriptfile> awk -f scriptfile < textfile
とりあえず書いてみよう
こだまでしょうか
いいえ、awkです
解説awk {print $0}awk : awkを実行print : 標準出力へ出力$0 : 入力行全体→入力をオウム返しする。
多少実用的なawk
お題:CSVデータ  神戸市    人口        1544200         面積        552.66         人口密度      2794.1  姫路市    人口        536270         面積 ...
実際にご覧ください
How to write awkBEGIN,ENDで前後処理読み込んだ行ごとに処理パターンごとに処理組み込み定数Cと類似の構文
awkかわいい書き方が単純 →覚えること少ない  →勉強コスト少ない   →すぐ使える    →便利
awkかわいい仕事中に2時間ぐらいこっそり調べて使えるようになった(体験談)
awkかわいいUNIX系の環境では99.999%ぐらい入ってる(古いのも)Cで文字列処理→つらい
awkの評判
┌(┌^o^)┐awk...本が少ない(3冊ぐらい)web情報もそこまでawkないhttp://gauc.no-ip.org/
まとめ●UNIX系でテキスト処理●簡単に使えるので便利●資料少ない→愛でカバー
終わり
awk入門
awk入門
awk入門
awk入門
awk入門
awk入門
Upcoming SlideShare
Loading in …5
×

awk入門

2,716 views

Published on

こだまでしょうか

  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

awk入門

  1. 1. awk入門 いかたけ
  2. 2. “awk”?テキスト処理ツールUNIX/Linuxコマンドスクリプト言語
  3. 3. “awk”?When:1977Who:Alfred Vaino Aho, Peter Jay Weinberger, Brian Wilson Kernighan
  4. 4. How to use ?UNIX/Linux コマンド> awk script> awk script < textfile> awk -f scriptfile> awk -f scriptfile < textfile
  5. 5. とりあえず書いてみよう
  6. 6. こだまでしょうか
  7. 7. いいえ、awkです
  8. 8. 解説awk {print $0}awk : awkを実行print : 標準出力へ出力$0 : 入力行全体→入力をオウム返しする。
  9. 9. 多少実用的なawk
  10. 10. お題:CSVデータ 神戸市 人口 1544200 面積 552.66 人口密度 2794.1 姫路市 人口 536270 面積 534.44 人口密度 人口 面積 人口密度 神戸市 1544200 552.66 2794.1 姫路市 536270 534.44 1003.4
  11. 11. 実際にご覧ください
  12. 12. How to write awkBEGIN,ENDで前後処理読み込んだ行ごとに処理パターンごとに処理組み込み定数Cと類似の構文
  13. 13. awkかわいい書き方が単純 →覚えること少ない  →勉強コスト少ない  →すぐ使える   →便利
  14. 14. awkかわいい仕事中に2時間ぐらいこっそり調べて使えるようになった(体験談)
  15. 15. awkかわいいUNIX系の環境では99.999%ぐらい入ってる(古いのも)Cで文字列処理→つらい
  16. 16. awkの評判
  17. 17. ┌(┌^o^)┐awk...本が少ない(3冊ぐらい)web情報もそこまでawkないhttp://gauc.no-ip.org/
  18. 18. まとめ●UNIX系でテキスト処理●簡単に使えるので便利●資料少ない→愛でカバー
  19. 19. 終わり

×