Hello,
I have two files which look like this
File 1
and file 2
I would like to count the "SNPs" under column "rsid" from file 2 for each corresponding "Name" in file 1 and would like to output the lowest value "P" with the corresponding categ and rs ID from file 2. So from the example above, I require an output that looks like this
Is it possible to do this with shell script ? Any help would be appreciated.
hi guys i need to extract information from log files generated by an application.
log file has the following lines for each process..
----------------------------------------------
Fri Aug 03 12:06:43 WST 2007 INFO: Running project PROJECT1
Fri Aug 03 12:06:43 WST 2007 INFO: Source Files... (7 Replies)
Anyone have a better idea to automate extraction of info like ...
"uname"
"ifconfig"
"ps efl"
"netstat -ao"
etc.
from several hundred aix, solaris, red hat boxes? without logging into each box and manually performing these tasks and dumping them to individual files?
thanks for any input (1 Reply)
I am not an expert in awk, SED, etc... but I really hope there is a way to do this, because I don't want to have to right a program. I am using C shell.
FILE 1 FILE 2
H0000000 H0000000
MA1 MA1
CA1DDDDDD CA1AAAAAA
MA2 ... (2 Replies)
I have this code
awk 'NR==FNR{a=$1;next} a' file1 file2
which does what I need it to do, but for only two files. I want to make it so that I can have multiple files (for example 30) and the code will return only the items that are in every single one of those files and ignore the ones... (7 Replies)
I have two files : Alpha and Beta.
The files are as follows (without arrow marks.)
Alpha:
A 1
D 90
G 11
B 24
C 15
Beta:
B 24
C 0 <--
G 11
D 20 <--
A 4 <--
E 777 <--
Expected output of the script :
Alpha: (2 Replies)
Hi all, I'm pretty much a newbie to UNIX. I would appreciate any help with UNIX coding on comparing two large csv files (greater than 10 GB in size), and output a file with matching columns.
I want to compare file1 and file2 by 'id' and 'chain' columns, then extract exact matching rows'... (5 Replies)
Assume we have two files - FileA and FileB. Content of files are as shown below :
FileA:1001,value1,value4,value8,value9
1002,value4,value32,value46,value33
1503,value5,value45,value68,value53
1605,value4,value67,value56,value57
1073,value5,value45,value68,value53... (3 Replies)
SPINE(1) User Commands SPINE(1)NAME
SPINE - High-speed polling agent for cacti
SYNOPSIS
spine [options] [firstid lastid]
DESCRIPTION
SPINE 0.8.7c Copyright 2002-2008 by The Cacti Group
OPTIONS
-h/--help
Show this brief help listing
-f/--first=X
Start polling with host X
-l/--last=X
End polling with host X
-p/--poller=X
Poller ID = X
-C/--conf=F
Read Spine configuration from file F
-O/--option=S:V
Override DB settings 'set' with value 'V'
-R/--readonly
This Spine run is readonly with respect to the database
-S/--stdout
Logging is performed to the standard output
-V/--verbosity=V
Set logging verbosity to <V>
--snmponly
Only do SNMP polling: no script stuff
Either both of --first/--last must be provided, or neither can be, and in their absence, all hosts are processed.
Without the --conf parameter, spine searches for its spine.conf file in the usual places.
Verbosity is one of NONE/LOW/MEDIUM/HIGH/DEBUG or 1..5
Runtime options are read from the 'settings' table in the Cacti database, but they can be overridden with the --option=S:V parameter.
Spine is distributed under the Terms of the GNU Lessor General Public License Version 2.1. (http://www.gnu.org/licenses/lgpl.txt) For more
information, see http://www.cacti.net
SPINE 0.8.7c Copyright 2002-2008 by The Cacti Group March 2009 SPINE(1)