Files
SwiftShell/SwiftShellTests/Scripts/print_linenumbers.swift
T
2014-09-08 18:33:46 +02:00

11 lines
134 B
Swift
Executable File

#!/usr/bin/env swiftshell
import SwiftShell
var i = 1
for line in standardinput.lines() {
print("line \(i++): ")
println(line)
}