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