d0f0487213a1ad3654555e8ffd12d6c9478798aa hiram Tue May 28 11:21:30 2013 -0700 adding to the userUtils build refs #9149 diff --git src/utils/toLower/toLower.c src/utils/toLower/toLower.c index 4bf5da2..334e9c3 100644 --- src/utils/toLower/toLower.c +++ src/utils/toLower/toLower.c @@ -1,27 +1,28 @@ /* toLower - Convert upper case to lower case in file. Leave other chars alone. */ #include "common.h" #include "linefile.h" void usage() /* Explain usage and exit. */ { errAbort( "toLower - Convert upper case to lower case in file. Leave other chars alone\n" "usage:\n" - " toLower in out\n"); + " toLower inFile outFile\n" + "equivalent to the unix commands: cat inFile | tr '[A-Z]' '[a-z]' > outFile"); } void toLower(char *inName, char *outName) /* toLower - Convert upper case to lower case in file. Leave other chars alone. */ { struct lineFile *lf = lineFileOpen(inName, FALSE); FILE *f = mustOpen(outName, "w"); int lineSize; char *line; while (lineFileNext(lf, &line, &lineSize)) { toLowerN(line, lineSize); mustWrite(f, line, lineSize); }