summaryrefslogtreecommitdiff
path: root/sample/cat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/cat.rb')
-rw-r--r--sample/cat.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/sample/cat.rb b/sample/cat.rb
index 93f028906a..a3243d308d 100644
--- a/sample/cat.rb
+++ b/sample/cat.rb
@@ -1,3 +1,4 @@
+# cat -n & `...' operator test
while gets()
if $. == 1 ... ~ /^\*/; print("--") end
printf("%5d: %s", $., $_)