a44421a79fb36cc2036fe116b97ea3bc9590cd0c braney Fri Dec 2 09:34:39 2011 -0800 removed rcsid (#295) diff --git src/utils/tailLines/tailLines.c src/utils/tailLines/tailLines.c index 4be06eb..803a02f 100644 --- src/utils/tailLines/tailLines.c +++ src/utils/tailLines/tailLines.c @@ -1,35 +1,34 @@ /* tailLines - add tail to each line of file. */ #include "common.h" #include "linefile.h" -static char const rcsid[] = "$Id: tailLines.c,v 1.1 2006/07/26 05:51:51 markd Exp $"; 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; }