Hi,
How can i use sed command to modify a part of a variable containing "/" by another containing "/" like describe below:
VAR="/app/share/eai"
VAR1="/app/share"
VAR2="/data/test"
echo $VAR | sed 's/... ??? # using sed to replace $VAR1 in $VAR by $VAR2 ? (4 Replies)
I have one File named "txt_file"
# cat txt_file
<DBType>RT</DBType>
<AppType>RT</AppType>
--------------------------------------------------
I want replace "<AppType>RT</AppType>" to
<AppType>XY</AppType> in txt_file and output redirect to Newfile
... (2 Replies)
I always kind of wondered this but I have a variable that I want to use in a search and replace. Basically I want to search a file for the string in my variable and replace it with something fixed but I'm unsure of the variable rule in sed. Here's generally what I have:
sed 's/$name/newname/g'... (15 Replies)
I know that I want to entirely replace line 3 in my file filename.txt. I have tried all sorts of variations of
sed 3,3,c\replacement stuff\ filename.txt with no success.
about the only thing that causes any reaction is
sed 3,3c\\ filename.txt
but it just prints out the whole file.
... (13 Replies)
Hi,
Could anyone clearly explain me the below sed construct in detail to get to know what it actually does?
sed 's/\(* *\)//4'
echo 'test;10;20' | sed 's/*;\(*\)/\1/' (1 Reply)
Thanks to this forum I have managed to work out a solution to my problem and actually understand most of it, but one thing is confusing me and I am sure someone here can explain.
I need to insert a piece of txt into a file. This txt is
awk '{ sub(/$/,"\r"); print }' $JCL_WBB50103_EFTOUT >... (2 Replies)
<tr><td width=10% style='width:5%;background:#F7F0D9;padding:0in 0in 0in 0in 0in'><center><b>Package</b></td><td width=10% valign=center style='width:5%;background:#F7F0D9;padding:0in 0in 0in 0in 0in'><center><b>JTs</b></td>
This is got to be simple. I run this on the above .html file:
sed... (8 Replies)
Hi,
In the following excerpt of shell script code: I could not understand the sed syntax. Could anyone shed some light on this?
configure_ssl()
{
jboss_conf_file=$1
echo "Configuring SSL for -" ${jboss_conf_file}
isSSLSetup=`echo cat ${jboss_conf_file} | grep <Connector... (2 Replies)
Greetings!
Have a quick question for the community today; this time looking at a nifty little sed puzzle ;)
Consider the following file content to be worked through:What needs to happen is theblock should be removed up to and including the following blank line, leavingI have bits and pieces... (8 Replies)
Dear all,
I need help, again.
I would like to use a sed on a for. Is is possible to ask sed to call a file in the syntax?
For exemple:
sed "/Y/ s/number/X/" test_imput > test_output
where Y is a file which inside there is one pattern only; Also X is a file with one... (6 Replies)
Discussion started by: lColli
6 Replies
LEARN ABOUT CENTOS
ipa-replica-conncheck
ipa-replica-conncheck(1) IPA Manual Pages ipa-replica-conncheck(1)NAME
ipa-replica-conncheck - Check a replica-master network connection before installation
SYNOPSIS
ipa-replica-conncheck [OPTION]...
DESCRIPTION
When an IPA replica is being installed a network connection between a replica machine and a replicated IPA master machine has to be pre-
pared for master-replica communication. In case of a flawed connection the installation may fail with inconvenient error messages. A common
connection problem is a misconfigured firewall with closed required port on a replica or master machine.
The connection is checked by running a set of tests from both master and replica machines. The program is incorporated to
ipa-replica-install(1) but can be also run separately.
OPTIONS
REPLICA MACHINE OPTIONS
This set of options is used when the connection check is run on a prepared IPA replica machine.
-m MASTER, --master=MASTER
Remote master machine address
-a, --auto-master-check
Automatically log in to master machine and execute the master machine part of the connection check. The following options for
replica part are only evaluated when this option is set
-r REALM, --realm=REALM
The Kerberos realm name for the IPA server
-k KDC, --kdc=KDC
KDC server address. Defaults t MASTER
-p PRINCIPAL, --principal=PRINCIPAL
Authorized Kerberos principal to use to log in to master machine. Defaults to admin
-w PASSWORD, --password=PASSWORD
Password for given principal. The password will be prompted interactively when this option is missing
MASTER MACHINE OPTIONS
This set of options is used when the connection check is run on a master machine against a running ipa-replica-conncheck(1) on a replica
machine.
-R REPLICA, --replica=REPLICA
Remote replica machine address
COMMON OPTIONS
-c, --check-ca
Include in a check also a set of dogtag connection requirements. Only needed when the master was installed with Dogtag 9 or lower.
-h HOSTNAME, --hostname=HOSTNAME
The hostname of this server (FQDN). By default a nodename from uname(2) is used
-d, --debug
Print debugging information
-q, --quiet
Output only errors
EXAMPLES
ipa-replica-conncheck -m master.example.com
Run a replica machine connection check against a remote master master.example.com. If the connection to the remote master machine is
successful the program will switch to listening mode and prompt for running the master machine part. The second part check the con-
nection from master to replica.
ipa-replica-conncheck -R replica.example.com
Run a master machine connection check part. This is either run automatically by replica part of the connection check program (when
-a option is set) or manually by the user. A running ipa-replica-conncheck(1) in a listening mode must be already running on a
replica machine.
ipa-replica-conncheck -m master.example.com -a -r EXAMPLE.COM -w password
Run a replica-master connection check. In case of a success switch to listening mode, automatically log to master.example.com in a
realm EXAMPLE.COM with a password password and run the second part of the connection check.
EXIT STATUS
0 if the connection check was successful
1 if an error occurred
SEE ALSO ipa-replica-install(1)IPA Jun 2 2011 ipa-replica-conncheck(1)