cat(1) clone in Swift