Hi,
I need help with using an awk or sed filter on the below line
ALTER TABLE "ACCOUNT" ADD CONSTRAINT "ACCOUNT_PK" PRIMARY KEY ("ACCT_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "WMC_DATA" LOGGING ENABLE
Look for... (2 Replies)
Hi,
I need help with using an awk or sed filter on the below line
ALTER TABLE "ACCOUNT" ADD CONSTRAINT "ACCOUNT_PK" PRIMARY KEY ("ACCT_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "WMC_DATA" LOGGING ENABLE
Look for... (1 Reply)
hi,
i am parsing a file, in that searching for lines those contains "$threadNo.Received message:" , if that line contains the required fields write them into a separate file other wise ignore them.
i am using the following code,but it is printing all the lines , i dont want to rpint , please help... (3 Replies)
trying to use sed in finding a matching pattern in a file then deleting
the next line only .. pattern --> <ad-content>
I tried this but it results are not what I wish
sed '/<ad-content>/{N;d;}' akv.xml > akv5.xml
ex,
<Celebrant2First>Mickey</Celebrant2First>
<ad-content>
Minnie... (2 Replies)
I have the following file:
line1
line2
MATCH
line3
line4
I need to find the pattern, "MATCH" and delete the line before and after MATCH. So the result should be
line1
MATCH
lline4
I have to use sed because it is the only utility that is common across my environments. I... (1 Reply)
I've got a report I need to make easier to read Using sh on HP-UX 11.12.
In short, I want to search for a regular expression and when found, examine the next line to see if it's blank. If so, then delete both lines. If not blank, move on to the next regexp. Repeat.
So far I've got:
... (7 Replies)
Hi folks,
I've list of LDAP records in this format:
cat cmmac.export.tmp2
dn: deviceId=0a92746a54tbmd34b05758900131136a506,ou=devices,ou=customer,ou=nl,o=upc
cmmac: 00:13:11:36:a5:06
dn: deviceId=0a92746a62pbms4662299650015961cfa23,ou=devices,ou=customer,ou=nl,o=upc
cmmac:... (4 Replies)
All,
I am trying to read in a variable and search a file then delete based on that string, but i want to match exact word.
This works but it matches all, i don't want to match anthing that contains the string, just the exact string.
sed -i "/$feedname/d" file
I tried
sed... (1 Reply)
Hi,
How to delete the last line if is match the below string else no action...
String checking "END OF FILE. ROW COUNT: "
9f680174-cb87-4f71-887a-93b6f62fa5aa|20077337254|2
9f680174-cb87-4f71-887a-93b6f62fa5aa|20077337254|0
229f680174-cb87-4f71-887a-93b6f62fa5aa|20077337254|3
END OF... (2 Replies)
I am using following sed rule to delete 2 lines after a pattern match inclusive.
# cat /tmp/temp.txt
dns.com
11
22
mydns.com
11
22
dns.com.au
11
22
LAST LINE
# cat /tmp/temp.txt | sed -e '/dns.com/,+2d'
LAST LINE
I just need to remove lines below dns.com only and NOT below... (5 Replies)
Discussion started by: anil510
5 Replies
LEARN ABOUT CENTOS
ocf_heartbeat_dhcpd
OCF_HEARTBEAT_DHCPD(7) OCF resource agents OCF_HEARTBEAT_DHCPD(7)NAME
ocf_heartbeat_dhcpd - Chrooted ISC DHCP server resource agent.
SYNOPSIS
dhcpd [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
Manage an ISC DHCP server service in a chroot environment.
SUPPORTED PARAMETERS
config
The absolute path to the DHCP server configuration file.
(unique, required, string, no default)
chrooted
Configure the dhcpd service to run in a chrooted or non-chrooted mode.
(unique, optional, boolean, default true)
chrooted_path
The absolute path of the chrooted DHCP environment.
(unique, optional, string, default "/var/lib/dhcp")
binary
The binary for the DHCP server process. An absolute path definition is not required, but can be used to override environment path.
(optional, string, default "dhcpd")
user
The system user the DHCP server process will run as when it is chrooted.
(optional, string, default "dhcpd")
group
The system group the DHCP server process will run as when it is chrooted.
(optional, string, default "nogroup")
interface
The network interface(s) the DHCP server process will bind to. A blank value will bind the process to all interfaces.
(optional, string, no default)
includes
This parameter provides a means to copy include files into the chrooted environment. If a dhcpd.conf file contains a line similar to
this:
include "/etc/named.keys";
Then an admin also has to tell the dhcpd RA that this file should be pulled into the chrooted environment. This is a space delimited
list.
(optional, string, no default)
leases
The leases database file, relative to chrooted_path.
(optional, string, default "/db/dhcpd.leases")
pid
The path and filename of the PID file. It is relative to chrooted_path.
(optional, string, default "/var/run/dhcpd.pid")
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 20.
stop
Stops the resource. Suggested minimum timeout: 20.
monitor
Performs a detailed status check. Suggested minimum timeout: 20. Suggested interval: 10.
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: 20.
EXAMPLE
The following is an example configuration for a dhcpd resource using the crm(8) shell:
primitive p_dhcpd ocf:heartbeat:dhcpd
params
config=string
op monitor timeout="20" interval="10" depth="0"
SEE ALSO
http://www.linux-ha.org/wiki/dhcpd_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 06/09/2014 OCF_HEARTBEAT_DHCPD(7)