summaryrefslogtreecommitdiff
path: root/sample/cat.rb
blob: 93f028906a9d0156d04b24e0b6e360e257a8f26d (plain)
1
2
3
4
while gets()
  if $. == 1 ... ~ /^\*/; print("--") end
  printf("%5d: %s", $., $_)
end