このドキュメントは、AWK˜plus と nano Shell の実力を知って頂くためのカタログです。
AWK + Shell = コマンドラインアプリという常識を破り、言語好きには、たまらない一品に仕上がりました。
This document is a catalog to help you understand the power of AWK˜plus and nano Shell.
Breaking the conventional wisdom of AWK + Shell = command line app, it's an irresistible dish for language
lovers.
"AWK˜nano" で始まるスクリプトは、nano Shell コマンドで作成されたサンプルです。
Script name | Description |
---|---|
AWK˜nano (1) First step | ファーストステップ (ドキュメントを表示) |
AWK˜nano (Color Chart) | Color Chart の nano バージョン |
AWK˜nano (Fibonacci) | フィボナッチ数を Shell スクリプトのリカーシブコールで解きます |
AWK˜nano (Prime) | 素数をシンプルなアルゴリズムで解きます |
AWK˜nano (Water) | 水を計るパズル (マクロ、最大公約数:GCDを定義) |
AWK˜nano (rpn) | 逆ポーランド電卓、配列及びスタック、キューバージョンがあります |
AWK˜nano (√2) | √2をシンプルな式で求めます |
AWK˜nano (√2Ⅱ) | √2をプログラムコンテストで、200万桁解いた式で求めます |
AWK˜nano T. ??? | 機能テスト (AWKコマンド、配列、変数参照など) |
AWK˜nano X `AWK` secret | `AWKコマンド`の秘密 (エラーを投げるので注意!) |
AWK˜nano X command | if 文でコマンド発行 |
AWK˜nano X instruction | nano 命令の検証 |
AWK˜nano 禅 (Zen) | 禅寺ツアー |
CawSay (Hello World) | Linuxの笑えないジョークアプリ |
Color Chart | 画面に彩りを添えるために作成。(多彩という意味) |
MATRIX | 映画 MATRIX、HTML版スクリーンセーバー (鏡に映してご覧ください) |
PUZZLE KOZE | プログラムコンテストに投稿したコードで、深さ優先探索(DFS)を使用しています |
Pom + NASA | NetBSD 'pom.c' (phase of the moon) の背景に NASA の日替わり画像を表示しています |
Prime number 10,000 | 素数を求めます。プログラムコンテストで使用したアルゴリズムで、求める素数の数の制限は、有りません |
阪神タイガース(ATOM) | RSSの新形式 (ATOM) で配信 |
阪神タイガース(WC) | こんなもん何が嬉しんやと思ってましたが、正規表現を使用すれば一発で解決します (他に tac, grep, sort コマンドなどを使用した例もあります) |
Scripts starting with "AWK˜nano" are samples created with the nano Shell command.
Script name | Description |
---|---|
AWK˜nano (1) First step | First step (View document) |
AWK˜nano (Color Chart) | The nano version of the Color Chart |
AWK˜nano (Fibonacci) | Solve Fibonacci numbers with Shell's recursive call |
AWK˜nano (Prime) | Solve prime numbers with a simple algorithm |
AWK˜nano (Water) | Water measuring puzzle (macro, greatest common divisor: define GCD) |
AWK˜nano (rpn) | There are reverse polish calculators, arrays and stacks, cue versions |
AWK˜nano (√2) | Find √2 with a simple formula |
AWK˜nano (√2Ⅱ) | Find √2 in a program contest with a formula that solves 2 million digits |
AWK˜nano T. ??? | Functional testing (AWK Command, Arrays, Variable reference etc.) |
AWK˜nano X `AWK` secret | `AWK command` secret (Be careful as it throws an error!) |
AWK˜nano X command | Issue a command with an if statement |
AWK˜nano X instruction | Verification of nano instructions |
AWK˜nano 禅 (Zen) | Zen Temple Tour |
CawSay (Hello World) | Linux's funny joke app |
Color Chart | Created to add color to the screen. (Meaning versatile) |
MATRIX | HTML screensaver for the movie MATRIX. Please look in the mirror |
PUZZLE KOZE | With the code posted in the program contest, I am using depth-first search (DFS) |
Pom + NASA | NetBSD 'pom.c' (phase of the moon) The daily image of NASA is displayed in the background |
Prime number 10,000 | Find a prime number. There is no limit to the number of prime, numbers required by the algorithm used in the program contest |
阪神タイガース(ATOM) | Delivered in the new RSS format (ATOM) |
阪神タイガース(WC) | I was wondering what I was happy about, If you use a regular expression, it will be solved in one
shot. (There is also an example using the tac, grep, sort command etc.) |