MCPcopy Create free account
hub / github.com/coreutils/coreutils / usage

Function usage

src/join.c:188–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186static char eolchar = '\n';
187
188void
189usage (int status)
190{
191 if (status != EXIT_SUCCESS)
192 emit_try_help ();
193 else
194 {
195 printf (_("\
196Usage: %s [OPTION]... FILE1 FILE2\n\
197"),
198 program_name);
199 fputs (_("\
200For each pair of input lines with identical join fields, write a line to\n\
201standard output. The default join field is the first, delimited by blanks.\
202\n\
203"), stdout);
204 fputs (_("\
205\n\
206When FILE1 or FILE2 (not both) is -, read standard input.\n\
207"), stdout);
208
209 oputs (_("\
210 -a FILENUM\n\
211 also print unpairable lines from file FILENUM,\n\
212 where FILENUM is 1 or 2, corresponding to FILE1 or FILE2\n\
213"));
214 oputs (_("\
215 -e STRING\n\
216 replace missing (empty) input fields with STRING;\n\
217 I.e., missing fields specified with '-12jo' options\n\
218"));
219 oputs (_("\
220 -i, --ignore-case\n\
221 ignore differences in case when comparing fields\n\
222"));
223 oputs (_("\
224 -j FIELD\n\
225 equivalent to '-1 FIELD -2 FIELD'\n\
226"));
227 oputs (_("\
228 -o FORMAT\n\
229 obey FORMAT while constructing output line\n\
230"));
231 oputs (_("\
232 -t CHAR\n\
233 use CHAR as input and output field separator\n\
234"));
235 oputs (_("\
236 -v FILENUM\n\
237 like -a FILENUM, but suppress joined output lines\n\
238"));
239 oputs (_("\
240 -1 FIELD\n\
241 join on this FIELD of file 1\n\
242"));
243 oputs (_("\
244 -2 FIELD\n\
245 join on this FIELD of file 2\n\

Callers 2

add_file_nameFunction · 0.70
mainFunction · 0.70

Calls 1

emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected