e70152e44cc66cc599ff6b699eb8adc07f3e656a kent Sat May 24 21:09:34 2014 -0700 Adding Copyright NNNN Regents of the University of California to all files I believe with reasonable certainty were developed under UCSC employ or as part of Genome Browser copyright assignment. diff --git src/utils/tailLines/tailLines.c src/utils/tailLines/tailLines.c index 803a02f..942aff4 100644 --- src/utils/tailLines/tailLines.c +++ src/utils/tailLines/tailLines.c @@ -1,34 +1,37 @@ /* tailLines - add tail to each line of file. */ + +/* Copyright (C) 2011 The Regents of the University of California + * See README in this or parent directory for licensing information. */ #include "common.h" #include "linefile.h" void usage() /* Explain usage and exit. */ { errAbort( "tailLines - add tail to each line of file\n" "usage:\n" " tailLines file tail\n" "This will add tail to each line of file and print to stdout."); } void tailLines(char *fileName, char *tail) /* tailLines - add tail to each line of file. */ { struct lineFile *lf = lineFileOpen(fileName, TRUE); int lineSize; char *line; while (lineFileNext(lf, &line, &lineSize)) printf("%s%s\n", line, tail); lineFileClose(&lf); } int main(int argc, char *argv[]) /* Process command line. */ { if (argc != 3) usage(); tailLines(argv[1], argv[2]); return 0; }