The only issue with your script is that if MediaInfo of a video doesn't have entry of selective-sao, it displays 1 value for it. Could we set it to NA please?
Needless to say that your script runs million times faster than mine because of the efficient use of awk. I tried several times to learn awk in depth but never found it easy. Please suggest some material to learn it easy way.
Hi everyone!!
I have a database table, which has file_name as one of its fields.
Example:
File_ID File_Name Directory Size
0001 UNO_1232 /apps/opt 234
0002 UNO_1234 /apps/opt 788
0003 UNO_1235 /apps/opt 897
0004 UNO_1236 /apps/opt 568
I have to... (3 Replies)
Hi,
I have mutiple csv files at server1 at /apps/test/data.
I needed a script that would copy these csv files from server1 at /usr/data, put them in server2,archive the earlier files that were present in server2 before removing those already present.
Kindly help. (2 Replies)
Hi,
I am regular reader of this forum. My advanced thanks to everyone.
Below given are the sample files
INDATA (Main data)
Fild1Çfld2Çfld3…..
Fild1Çfld2Çfld3…..
Fild1Çfld2Çfld3…..
Fild1Çfld2Çfld3…..
Fild1Çfld2Çfld3…..
.
.
N records (140000) eg
GRPDATA (Reference file) (2 Replies)
Hey gyuz,
I wanna calculate the number of mapped reads of a bam file in a region of interest. I used this code to do so :
samtools view input.bam chrname:region1 > region1.txt
This will store all the reads from given bam file within the region of interest in region1.txt
Now I have... (5 Replies)
Hi,
I'd like to find the values of certain fields in multiple csv files stored in 1 directory
based upon an input search string.
An fgrep returns the complete record, I only want certain fields.
Thanks in advance for your help.
Perry (6 Replies)
Hi guys,
I have a requirement where i need to split a .csv file into multiple files.
Say for example i have data.csv file and i have splitted that into multiple files based on some conditions i.e first file should have 100, last file 50 and other files 1000 each. Am passing the values in... (2 Replies)
Hello,
I have a spec file that contains a lot of strings that looks like this:
PC DELL OptiPlex 3010MT i3 3220/2GB/500GB/DVD-RW/FREE DOS / 5Y NBD
Intel i3 3220 (Dual Core, 3.30GHz, 3MB, w/ HD2500 Graphics), 2GB (1x2GB) DDR3 PC3-1600MHz, 500GB HDD SATA III 7200rpm, DVD+/-RW (16x),... (9 Replies)
Hi,
I need to load data from two files to a single table.
My requirement is that I get two files in which a few column data are manadatory.
These files are identified based on the file name.
For example, I have two files ABCFile and BCDFile. ABCFile has mandatory data in column 3 and 4... (0 Replies)
Hello,
For our work we use several scripts to gather/combine data for use in our webshop. Untill now we did not had any problems but since a couple days we noticed some mismatches between imports.
It happened that several barcodes where matched even though it was a complete other product. Of... (19 Replies)
Hello All,
just wanted to export multiple tables from oracle sql using unix shell script to csv file and the below code is exporting only the first table.
Can you please suggest why? or any better idea?
export FILE="/abc/autom/file/geo_JOB.csv"
Export= `sqlplus -s dev01/password@dEV3... (16 Replies)
Discussion started by: Hope
16 Replies
LEARN ABOUT DEBIAN
pymetrics
PYMETRICS(1) User Commands PYMETRICS(1)NAME
pymetrics - Python source code metrics
SYNOPSIS
pymetrics [options] files...
DESCRIPTION
This manual page documents briefly the pymetrics command
pymetrics is a program that produces metrics for Python programs. Metrics include McCabe's Cyclomatic Complexity metric, LoC, %Comments,
etc. Users can also define their own metrics using data from PyMetrics. PyMetrics optionally outputs to stdout, SQL command files and CSV
files.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below.
-h, --help
show this help message and exit
-s SQLFILENAME, --sql=SQLFILENAME
name of output SQL command file. (Default is metricData.sql)
-t SQLTOKENTABLENAME, --tokentable=SQLTOKENTABLENAME
name of output SQL token table. (Default is metricTokens)
-m SQLMETRICSTABLENAME, --metricstable=SQLMETRICSTABLENAME
name of output SQL metrics table. (Default is metricData)
-c CSVFILENAME, --csv=CSVFILENAME
name of output CSV data file. (Default is metricData.csv)
-f INFILELIST, --files=INFILELIST
File containing list of path names to modules for analysis.
-i INCLUDEMETRICSSTR, --include=INCLUDEMETRICSSTR
list of metrics to include in run. This is a comma separated list of metric module names with no whitespace. Optionally, you can
specify the class name of the metric by following the module name with a colon (:) and the metric class name. (Default metrics are
'simple:SimpleMetric,mccabe:McCabeMetric,sloc:SLOC Metric'. Default metric class name for metric module 'wxYz' is 'WxYzMetric' when
only module name given -- note capitalized metric class name.)
-l LIBNAME, --library=LIBNAME
user-defined name applied to collection of modules (Default is '')
-e, --exists
assume SQL tables exist and does not generate creation code. Using this option sets option -N. (Default is False)
-N, --noold
create new command output files and tables after deleting old results, if any. Ignored if -e is set. (Default is False)
-B, --nobasic
suppress production of Basic metrics (Default is False)
-S, --nosql
suppress production of output SQL command text file. (Default is False)
-C, --nocsv
suppress production of CSV output text file. (Default is False)
-H, --noheadings
suppress heading line in csv file. (Default is False)
-k, --kwcnt
generate keyword counts. (Default is False)
-K, --nokwcnt
suppress keyword counts. (Default is True)
-q, --quiet
suppress normal summary output to stdout. (Default is False)
-z, --zero
display zero or empty values in output to stdout. (Default is to suppress zero/empty output)
-v, --verbose
Produce verbose output - more -v's produce more output. (Default is no verbose output to stdout)
-d, --debug
Provide debug output, not usually generated - internal use only
AUTHOR
pymetrics was written by Reg. Charney.
This manual page was written by Andrew Pollock <apollock@debian.org>, for the Debian project (but may be used by others).
pymetrics 0.8.1 September 2009 PYMETRICS(1)