InfoTextFiles.pl - List information about TextFile(s)
InfoTextFiles.pl TextFile(s)...
InfoTextFiles.pl [-a, --all] [-c, --count] [--datacheck] [-d, --detail infolevel] [-e, --empty] [-h, --help] [--indelim comma | semicolon] [-m, --mode colnum | collabel] [-n, --numericaldatacols colnum,[colnum,...] | collabel,[collabel,...]] [-w, --workingdir dirname] TextFile(s)...
List information about TextFile(s) contents: number of lines and columns, empty column values, and so on. The file names are separated by spaces. The valid file extensions are .csv and .tsv for comma/semicolon and tab delimited text files respectively. All other file names are ignored. All the text files in a current directory can be specified by *.csv, *.tsv, or the current directory name. The --indelim option determines the format of TextFile(s). Any file which doesn't correspond to the format indicated by --indelim option is ignored.
List all the available information.
List number of rows and columns. This is default behavior.
List number of numerical and non-numerical values for each column.
Level of information to print about lines being ignored. Default: 1. Possible values: 1, 2 or 3.
List number of empty row and column values.
Print this help message.
Input delimiter for CSV TextFile(s). Possible values: comma or semicolon. Default value: comma. For TSV files, this option is ignored and tab is used as a delimiter.
Specify how to identify numerical data columns: using column number or column label. Possible values: colnum or collabel. Default value: colnum.
This value is mode specific. It is a list of column number or labels to check for presence of numerical data only; otherwise, the value is flagged. Default value: all;all;....
For colnum mode, input value format is: colnum,...;colnum,...;.... Example:
For collabel mode, input value format is: collabel,...;collabel,...;.... Example:
Location of working directory. Default: current directory.
To count number of lines and columns in Text file(s), type:
To count number of lines, columns and empty values in Sample1.csv file and print detailed information, type:
To track all available information and non-numerical values for Mol_ID and MolWeight columns in Sample1.csv file and print detailed information, type:
JoinTextFiles.pl, MergeTextFilesWithSD.pl, ModifyTextFilesFormat.pl, SplitTextFiles.pl, TextFilesToHTML.pl
Copyright (C) 2024 Manish Sud. All rights reserved.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.