02-08-2018
Misread the requirement, apologize.
Regards
Peasant.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All,
I have a string "CP_STATUS OSSRC_R6_0_Shipment_R1H_CU AOM_901046 R1H_LLSV1_2008031", and I just want to extract LLSV1, but I dont get the expected result when using the sed command below.
# echo "CP_STATUS OSSRC_R6_0_Shipment_R1H_CU AOM_901046 R1H_LLSV1_2008031" | awk '{print... (4 Replies)
Discussion started by: racbern
4 Replies
2. Shell Programming and Scripting
Hi
i want to search two pattern on same line and replace onther pattern..
INPut file
aaaa bbbbb nnnnnn ttttt
cccc bbbbb nnnnnn ppppp
dddd ccccc nnnnnn ttttt
ffff bbbbb oooooo ttttt
now i want replace this matrix like.. i want search for "bbbbb","nnnnnn" and search and replace for... (4 Replies)
Discussion started by: nitindreamz
4 Replies
3. Shell Programming and Scripting
Hello EveryOne,
I have a file "test" with following entry.
this is test prtestad yes this is test .
Above i have colored pr and ad .
Actually requirement is to replace all words starts with pr and ends with ad should be replaced by word prahlad .
Means after changes... (9 Replies)
Discussion started by: shirsha
9 Replies
4. Shell Programming and Scripting
Hi,
I have the following text file:
facdat=$SPDR_SHARED_SCRIPTS/mdb_facdat.pl -s fnma;
upddte=$AGENCY_SCRIPTS/get_upddte.pl -f $EMBS_DAILY_DIR/$filenm
$SASRUN $AGENCY_SCRIPTS/fnma_daily_factors.sas -sysparm "$facdat $upddte"
$SASRUN $AGENCY_SCRIPTS/fnma_daily_addtn.sas -sysparm "$facdat... (12 Replies)
Discussion started by: ramky79
12 Replies
5. Shell Programming and Scripting
I need this.
aaa
OOOOO
bbb
ccc
OOOOO
ddd
fff
ggg
OOOOO
iii
OOOOO
I need all OOOOO replaced with PPPPP, but only change after the pattern ggg. So the first two OOOOO should not be changed.
OUTPUT should be :-
aaa (2 Replies)
Discussion started by: anilcliff
2 Replies
6. Shell Programming and Scripting
I have a pattern
username:x:32005:32006::/usr/local/user:/bin/bash
I need to match the line containing username and replace /bin/bash with /usr/local/my/bin/noshell
So it becomes
username:x:32005:32006::/usr/local/user:/usr/local/my/bin/noshell (7 Replies)
Discussion started by: anilcliff
7 Replies
7. Shell Programming and Scripting
Hi, I am a rookie of Linux.
I have a problem on how can I replace a certain pattern in Linux with nothing. Can anyone help me?:(
sample.txt:
<binding>App189
ABC SampleMachine1 ABC
XXX
YYY
ZZZ
</binding>
<binding>App190
ABC SampleMachine2 ABC
XXX
YYY
ZZZ
</binding>
<binding>App191... (3 Replies)
Discussion started by: dirkaulo
3 Replies
8. Shell Programming and Scripting
Hi, I have file as follows. And i want to remove {,} and ' from the line with :4488: to :-}.
INPUT FILE
:2020:WITCH13288008772
:4488:20131015INR250000,03
:5500:00000060020001752
{Mr. Chintan '
Add1}
. { } Add2
:5518:WITC0000822
-}
OUTPUT FILE
:2020:WITCH13288008772... (10 Replies)
Discussion started by: sandipgawale
10 Replies
9. Shell Programming and Scripting
Not able to paste my content. Please see the attachment :-( (2 Replies)
Discussion started by: vivek d r
2 Replies
10. Shell Programming and Scripting
Im using the command below , but thats not the output that i want. it only prints the odd and even numbers.
awk '{if(NR%2){print $0 > "1"}else{print $0 > "2"}}'
Im hoping for something like this
file1:
Text hi this is just a test
text1 text2 text3 text4 text5 text6
Text hi... (2 Replies)
Discussion started by: invinzin21
2 Replies
LEARN ABOUT CENTOS
dlm_controld
DLM_CONTROLD(8) dlm DLM_CONTROLD(8)
NAME
dlm_controld - dlm cluster control daemon
SYNOPSIS
dlm_controld [OPTIONS]
DESCRIPTION
The kernel dlm requires a user daemon to manage lockspace membership. dlm_controld manages lockspace membership using corosync cpg groups,
and translates membership changes into dlm kernel recovery events. dlm_controld also manages posix locks for cluster file systems using
the dlm.
OPTIONS
Command line options override a corresponding setting in dlm.conf(5).
For default settings, see dlm_controld -h.
--daemon_debug | -D
enable debugging to stderr and don't fork
--foreground
don't fork
--log_debug | -K
enable kernel dlm debugging messages
--protocol | -r str
dlm kernel lowcomms protocol: tcp, sctp, detect
--debug_logfile | -L
write debugging to log file
--enable_plock | -p 0|1
enable/disable posix lock support for cluster fs
--plock_debug | -P
enable plock debugging
--plock_rate_limit | -l int
limit rate of plock operations (0 for none)
--plock_ownership | -o 0|1
enable/disable plock ownership
--drop_resources_time | -t int
plock ownership drop resources time (milliseconds)
--drop_resources_count | -c int
plock ownership drop resources count
--drop_resources_age | -a int
plock ownership drop resources age (milliseconds)
--post_join_delay | -j int
seconds to delay fencing after cluster join
--enable_fencing | -f 0|1
enable/disable fencing
--enable_concurrent_fencing 0|1
enable/disable concurrent fencing
--enable_startup_fencing | -s 0|1
enable/disable startup fencing
--enable_quorum_fencing | -q 0|1
enable/disable quorum requirement for fencing
--enable_quorum_lockspace 0|1
enable/disable quorum requirement for lockspace operations
--fence_all str
fence all nodes with this agent
--unfence_all
enable unfencing self with fence_all agent
--help | -h
print this help, then exit
--version | -V
Print program version information, then exit
SEE ALSO
dlm_tool(8), dlm.conf(5)
dlm 2012-04-05 DLM_CONTROLD(8)