annotate docs/scripts/txt/JoinTextFiles.txt @ 3:90ea638ce878 draft default tip

Uploaded
author deepakjadmin
date Wed, 20 Jan 2016 09:11:59 -0500
parents 2abf0d43254d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
1 NAME
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
2 JoinTextFiles.pl - Join multiple CSV or TSV text files into a single
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
3 text file
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
4
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
5 SYNOPSIS
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
6 JoinTextFiles.pl TextFiles...
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
7
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
8 JoinTextFiles.pl [-f, --fast] [-h, --help] [--indelim comma | semicolon]
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
9 [-l, --label yes | no] [-o, --overwrite] [--outdelim comma | tab |
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
10 semicolon] [-q, --quote yes | no] [-r, --root rootname] [-w,
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
11 --workingdir dirname] TextFiles...
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
12
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
13 DESCRIPTION
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
14 Multiple CSV or TSV *TextFiles* are joined to generate a single text
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
15 file. The file names are separated by spaces. The valid file extensions
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
16 are *.csv* and *.tsv* for comma/semicolon and tab delimited text files
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
17 respectively. All other file names are ignored. All the text files in a
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
18 current directory can be specified by **.csv*, **.tsv*, or the current
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
19 directory name. The --indelim option determines the format of
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
20 *TextFiles*. Any file which doesn't correspond to the format indicated
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
21 by --indelim option is ignored.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
22
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
23 OPTIONS
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
24 -f, --fast
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
25 In this mode, --indelim and -q --quote options are ignored. The
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
26 format of input and output file(s) are assumed to be similar. And
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
27 the text lines from *TextFiles* are simply transferred to output
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
28 file without any processing.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
29
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
30 -h, --help
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
31 Print this help message.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
32
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
33 --indelim *comma | semicolon*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
34 Input delimiter for CSV *TextFile(s)*. Possible values: *comma or
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
35 semicolon*. Default value: *comma*. For TSV files, this option is
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
36 ignored and *tab* is used as a delimiter.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
37
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
38 -l, --label *yes | no*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
39 First line contains column labels. Possible values: *yes or no*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
40 Default value: *yes*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
41
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
42 -o, --overwrite
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
43 Overwrite existing files.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
44
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
45 --outdelim *comma | tab | semicolon*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
46 Output text file delimiter. Possible values: *comma, tab, or
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
47 semicolon* Default value: *comma*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
48
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
49 -q, --quote *yes | no*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
50 Put quotes around column values in output text file. Possible
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
51 values: *yes or no*. Default value: *yes*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
52
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
53 -r, --root *rootname*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
54 New text file name is generated using the root: <Root>.<Ext>.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
55 Default file name: <FirstTextFileName>1To<Count>Joined.<Ext>. The
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
56 csv, and tsv <Ext> values are used for comma/semicolon, and tab
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
57 delimited text files respectively.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
58
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
59 -w, --workingdir *dirname*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
60 Location of working directory. Default: current directory.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
61
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
62 EXAMPLES
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
63 To join CSV text files, type:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
64
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
65 % JoinTextFiles.pl -o Sample1.csv Sample2.csv
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
66 % JoinTextFiles.pl -o *.csv
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
67
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
68 To join Sample*.tsv TSV text files into a NewSample.tsv file, type:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
69
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
70 % JoinTextFiles.pl -o -r NewSample Sample*.tsv
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
71
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
72 AUTHOR
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
73 Manish Sud <msud@san.rr.com>
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
74
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
75 SEE ALSO
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
76 MergeTextFiles.pl, ModifyTextFilesFormat.pl, SplitTextFiles.pl
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
77
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
78 COPYRIGHT
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
79 Copyright (C) 2015 Manish Sud. All rights reserved.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
80
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
81 This file is part of MayaChemTools.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
82
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
83 MayaChemTools is free software; you can redistribute it and/or modify it
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
84 under the terms of the GNU Lesser General Public License as published by
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
85 the Free Software Foundation; either version 3 of the License, or (at
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
86 your option) any later version.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
87