Here’s the code from the dcat program that writes the line number to the stdout (if the -n flag is set) followed by the line from the file. if (showLineNumbers) { stdout . write(‘${lineNumber++} ‘); } stdout. writeln(line);
Here’s the code from the dcat program that writes the line number to the stdout (if the -n flag is set) followed by the line from the file. if (showLineNumbers) { stdout . write(‘${lineNumber++} ‘); } stdout. writeln(line);