number_lines

A simple version of the unix 'nl' program.

This program is a simpler version of the unix 'nl' (number lines) program. It reads text from files or standard input and adds a line number to each line.

Copyright (c) 2015-2018, eBay Software Foundation Initially written by Jon Degenhardt

Members

Functions

main
int main(string[] cmdArgs)

Main program.

numberLines
void numberLines(NumberLinesOptions cmdopt, string[] inputFiles)

Implements the primary logic behind number lines.

Structs

NumberLinesOptions
struct NumberLinesOptions

Container for command line options.

Variables

helpText
auto helpText;
Undocumented in source.

Meta

License

Boost Licence 1.0 (http://boost.org/LICENSE_1_0.txt)