My data is something like as shown below. Out of this i want the details of alarms (ex: 1947147711,1947147081......) and the fields( ex :sw=tacmwafabb9:shelf=1:slot=5-2:pport=2)
Once i have these details separated, i want the count of these excluding the duplicates. What is the best possible way to get this?
sample data:
Output required :
Last edited by otheus; 06-30-2009 at 06:17 AM..
Reason: codetags
Hi All,
I am new to unix scripting, please help me in solving this assignment..
I have a scenario, as follows:
1. i have a text file(read1.txt) with the following data
sairam,123
kamal,122
etc..
2. I have to write a unix... (6 Replies)
i have this file which has the following contents:
,-0.3000 ,-0.3000 ,-0.3000
,-0.9000 ,-0.9000 ,-0.9000
i would like to get this:
-0.3-0.9-0.3-0.9-0.3-0.9
so far i am trying:
awk '{for(i=1; i<=NF; i++) {printf("%f\n",$i)}}' test1 > test2
any help... (4 Replies)
My data is something like shown below.
date1 date2 aaa bbbb ccccc
date3 date4 dddd eeeeeee ffffffffff ggggg hh
I want the output like this
date1date2 aaa eeeeee
I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Sample txt file :
OK00001111112|
OK00003443434|skjdaskldj
OK32812983918|asidisoado
OK00000000001|
ZM02910291029|sldkjaslkjdasldjk
what would be the shell script to figure out the blank space (if any) after the pipe sign? (4 Replies)
Hi,
I have a huge unsorted text file. We wanted to identify the unique field values in a line and consider those fields as a primary key for a table in upstream system.
Basically, the process or script should fetch the values from each line that are unique compared to the rest of the lines in... (13 Replies)
I want to rearrange the fields of delimited text file after sorting first line (only):
input file:
a_13;a_2;a_1;a_10
13;2;1;10
the result should be:
a_1;a_2;a_10;a_13
1;2;10;13
any help would be appreciated
andy (20 Replies)
I have requirement to search for a text in the file and retrieve required lines that is user defined with unix command.
Eg:
Find the text UNIX in the below file and need to return Test 8 & Test 9
Test 1
Test 2
Test 3
Test 4
UNIX
Test 5
Test 6
Test 7
Test 8
Test 9
Result can... (8 Replies)
Discussion started by: Arunkumarsak4
8 Replies
LEARN ABOUT DEBIAN
ocf_heartbeat_aoetarget
OCF_HEARTBEAT_AOETAR(7) OCF resource agents OCF_HEARTBEAT_AOETAR(7)NAME
ocf_heartbeat_AoEtarget - Manages ATA-over-Ethernet (AoE) target exports
SYNOPSIS
AoEtarget [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
This resource agent manages an ATA-over-Ethernet (AoE) target using vblade. It exports any block device, or file, as an AoE target using
the specified Ethernet device, shelf, and slot number.
SUPPORTED PARAMETERS
device
The local block device (or file) to export as an AoE target. (required, string, no default)
nic
The local Ethernet interface to use for exporting this AoE target. (required, string, default eth0)
shelf
The AoE shelf number to use when exporting this target. (optional, integer, no default)
slot
The AoE slot number to use when exporting this target. (required, integer, no default)
pid
The file to record the daemon pid to. (unique, optional, string, default /var/run/resource-agents/AoEtarget-default.pid)
binary
Location of the vblade binary. (optional, string, default /usr/sbin/vblade)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 15.
stop
Stops the resource. Suggested minimum timeout: 15.
monitor
Performs a detailed status check. Suggested minimum timeout: 15. Suggested interval: 10.
reload
Suggested minimum timeout: 15.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 15.
EXAMPLE
The following is an example configuration for a AoEtarget resource using the crm(8) shell:
primitive p_AoEtarget ocf:heartbeat:AoEtarget
params
device=string
nic="eth0"
slot=integer
op monitor timeout="15" interval="10" depth="0"
SEE ALSO
http://www.linux-ha.org/wiki/AoEtarget_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_AOETAR(7)