All Downloads are FREE. Search and download functionalities are using the official Maven repository.

command-definition.wc.html Maven / Gradle / Ivy

There is a newer version: 0.6
Show newest version


The wc utility reads from the input and, by default, writes the number of lines, words, and characters to the output. If more than one input file is specified, a line of cumulative counts for all the files is displayed on a separate line after the output for the last file.

The wc utility considers a word to be a non-zero-length string of characters delimited by white space. White space characters are the set of characters for which {@link Character#isWhitespace(char)} returns true.

When any option is specified, wc reports only the information requested by the specified options.

If only one count type is requested, the count is outputted as an integer. If more than one count is requested, a fixed width formatting is used, with the counts being right aligned. The width of each field is equal to the width of the widest field (count) plus two characters.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy