Pure Programmer
Blue Matrix


Cluster Map

Project: Line Number Filter

Write a program that accepts input from the console or from a re-directed file that prints each line from the input stream. Each line should be prefixed with a line number (padded to 5 spaces, right aligned), followed by a colon, followed by the line from the input stream.

Output
$ swiftc LineNumberFilter.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution