diff options
Diffstat (limited to 'sample/cat.rb')
-rw-r--r-- | sample/cat.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sample/cat.rb b/sample/cat.rb new file mode 100644 index 0000000000..93f028906a --- /dev/null +++ b/sample/cat.rb @@ -0,0 +1,4 @@ +while gets() + if $. == 1 ... ~ /^\*/; print("--") end + printf("%5d: %s", $., $_) +end |