02-21-2013
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hii Friends.. I have a huge set of data stored in a file.Which is as shown below
a.dat:
RAO 1869 12 19 0 0 0.00 17.9000 82.3000 10.0 0 0.00 0 3.70 0.00 0.00 0 0.00 3.70 4 NULL
LEE 1870 4 11 1 0 0.00 30.0000 99.0000 0.0 0 0.00 0 0.00 0.00 0.00 0 ... (3 Replies)
Discussion started by: reva
3 Replies
2. Shell Programming and Scripting
Hello to all,
I have this file
2002 1 23 0 0 2435.60 131.70 5.60 20.99 0.89 0.00 285.80 2303.90
2002 1 23 15 0 2436.60 132.90 6.45 21.19 1.03 0.00 285.80 2303.70
2002 1 23 ... (6 Replies)
Discussion started by: joggdial3000
6 Replies
3. Shell Programming and Scripting
Trying to cut down the size of some log files. Now that I write this out it looks more dificult than i thought it would be.
Need a bash script or command that goes sequentially through all lines of a file, and does this:
if field1 (space separated) is the number 2012 print the entire line. Do... (7 Replies)
Discussion started by: ajp7701
7 Replies
4. Shell Programming and Scripting
I have a csv file that I would like to remove duplicate lines based on field 1 and sort. I don't care about any of the other fields but I still wanna keep there data intact. I was thinking I could do something like this but I have no idea how to print the full line with this. Please show any method... (8 Replies)
Discussion started by: cokedude
8 Replies
5. Shell Programming and Scripting
Hi,
How can I remove duplicates from a file based on group on other column? for example:
Test1|Test2|Test3|Test4|Test5
Test1|Test6|Test7|Test8|Test5
Test1|Test9|Test10|Test11|Test12
Test1|Test13|Test14|Test15|Test16
Test17|Test18|Test19|Test20|Test21
Test17|Test22|Test23|Test24|Test5
... (2 Replies)
Discussion started by: yale_work
2 Replies
6. Shell Programming and Scripting
Hi ,
Some time i got duplicated value in my files ,
bundle_identifier= B
Sometext=ABC
bundle_identifier= A
bundle_unit=500
Sometext123=ABCD
bundle_unit=400
i need to check if there is a duplicated values or not if yes , i need to check if the value is A or B when Bundle_Identified ,... (2 Replies)
Discussion started by: OTNA
2 Replies
7. Shell Programming and Scripting
I have file like this:
chr start end
chr15 99874874 99875874 chr15 99875173 99876173 aa1
chr15 99874923 99875923 chr15 99875173 99876173 aa1
chr15 99874962 99875962 chr15 99875173 99876173 aa1
chr1 ... (7 Replies)
Discussion started by: raj_k
7 Replies
8. Shell Programming and Scripting
Dear members, I need to filter a file based on the 8th column (that is id), and does not mather the other columns, because I want just one id (1 line of each id) and remove the duplicates lines based on this id (8th column), and does not matter wich duplicate will be removed.
example of my file... (3 Replies)
Discussion started by: clarissab
3 Replies
9. Shell Programming and Scripting
Hi,
I have a file with many sections in it. Each section is separated by a blank line.
The first line of each section would determine if the section is duplicate or not.
if the section is duplicate then remove the entire section from the file.
below is the example of input and output.... (5 Replies)
Discussion started by: ahmedwaseem2000
5 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
I've got a file that has 12 fields. I've merged 2 files and there will be some duplicates in the following:
FILE:
1. ABC, 12345, TEST1, BILLING, GV, 20/10/2012, C, 8, 100, AA, TT, 100
2. ABC, 12345, TEST1, BILLING, GV, 20/10/2012, C, 8, 100, AA, TT, (EMPTY)
3. CDC, 54321, TEST3,... (4 Replies)
Discussion started by: tugar
4 Replies
LEARN ABOUT CENTOS
mce-inject
MCE-INJECT(8) Linux's Administrator's Manual MCE-INJECT(8)
NAME
mce-inject - Inject machine checks into x86 kernel for testing
SYNOPSIS
mce-inject mce-file1 ...
mce-inject < mce-file
DESCRIPTION
mce-inject allows to inject machine checks in a running x86 Linux kernel. machine checks are internal CPU errors. This tool is intended to
test the machine check handling code. The injection only happens on the software level and does not simulate full machine check handling
on the platform level. The machine checks to be injected are described in a input language similar to the format the kernel outputs on a
panic message (with a few extension). In general you should be able to pipe in a panic message to inject that mce. See the IA32 SDM Vol3a
chapter 14 for the details on fields. They correspond to the machine check MSRs of the standard IA32 Machine check architecture described
there.
INPUT LANGUAGE
These generally represent the similarly CPU MSRs, with some metadata on where to inject the exception. Please see the IA software develop-
ers Manual for more details.
The machine check always starts with MCE or CPU number|broadcast [bank-number] Machine check is injected on CPU xx or broadcasted to all
CPUs
BANK bank-number Machine check bank to inject on.
STATUS {number|fatal|corrected|uncorrected|pcc|uc|val|en|over|ar|ucna|srao|srar|s}
The symbols generally represent hardware register bits, as documented in the Intel software developer's manual. When multiple are listed
they are ored together.
MCGSTATUS {number|mcip|ripv|eipv}
The symbols generally represent hardware register bits, as documented in the Intel software developer's manual. When multiple are listed
they are ored together.
ADDR number
RIP number RIP number:<number>{string} RIP number:number
MISC number
CPU number : machine check exception : number BANK number : number parsed for compatibility with kernel output. Use explicit statements
TSC number TSC state injected in machine check
NOBROADCAST Don't broadcast exceptions to all CPUs. Default is to broadcast UC
IRQBROADCAST Broadcast IRQ to all CPUs that not getting error injection.
NMIBROADCAST Broadcast NMI to all CPUs that not getting error injection.
IN_IRQ MCE should be injected in interrupt context
IN_PROC MCE injected in process context.
HOLD Don't inject MCE immediately but hold it for later injection. This is useful for testing injection on multiple CPUs in parallel
SOCKETID number Socketid. Ignored by kernel on injection.
MCGCAP number Machine check capabilities register value. Currently ignored by kernel on injection.
POLL Inject in machine check poller code.
EXCP Inject as machine check exception.
APICID number APIC ID of CPU. Ignored by kernel on injection.
A list of symbols ors the symbols together.
Multiple fields can be on a line. number can be hex/octal/decimal in the usual C format. Multiple machine checks can be in a single file,
each new one starts with "CPU" or "MCE". For all missing fields reasonable default values are filled in (hopefully) Comments start with #
until the end of the line The keywords are case-insensitive.
REQUIREMENTS
mce-inject to run as root. /dev/mcelog has to exist. The kernels needs to have machine check injection ( CONFIG_X86_MCE_INJECT ) enabled
and if modular the mce-inject module loaded. This option is available in Linux 2.6.31 or later.
NOTES
The mce-test package has a lot of input file examples.
SEE ALSO
Intel 64 and IA32 Architectures Software Developer's manual, Volume 3, System programming guide Parts 1 and 2. Machine checks are described
in Chapter 14 in Part1 and in Append ix E in Part2.
Datasheet of your CPU.
Intel OTC May 2009 MCE-INJECT(8)