Skip to content

Instantly share code, notes, and snippets.

@papiron
Last active December 5, 2015 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save papiron/8e31cb41988ad87794b1 to your computer and use it in GitHub Desktop.
Save papiron/8e31cb41988ad87794b1 to your computer and use it in GitHub Desktop.
シェル芸初心者向け勉強会:ウォーミングアップ問題(問題のみ)
問題1
1から10まで合計を計算してください
問題2
下記のファイルを2列目の数字の小さい順に並べ替えてください。
$ cat list
b 11
d 5
a 3
e 4
c 2
問題3
文字列の並びを逆にしてください
$ echo 'a b c'
問題4
下記の日付一覧から、月毎の日の数を数えてください
$ cat date1
20150101
20150121
20150201
20150202
20150203
20150310
問題5
日付と商品が売れた数があります。月毎の商品の売れた数を数えてください。
cat date2
20150101 1
20150121 2
20150201 5
20150202 2
20150203 3
20150310 2
問題6
下記のファイルの積集合と和集合を出力してください
$ cat data1
a
b
c
d
$ cat data2
b
d
e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment