08-29-2017
Need to update the text file with next version of deployment(V1,V2,V3)
Hi.. am new to shell and trying to write the script for the below task. Intially new.txt will be empty.
Requirment is to update the version of deployment packages.First time CMD_HG-120-V1 should be updated in new.txt.
Next time when i run the script it should be CMD_HG-120-V2..Simiraly CMD_HG-120-V3...It should take latest version from new.txt file and increment the version in new.txt file.
This time it should be CMD_HG-120-V4 if the previous version is V3 in txt file.
CMD_HG-120-V1
CMD_HG-120-V2
CMD_HG-120-V3
....
Last edited by naresh2389; 08-29-2017 at 08:07 AM..
Reason: Added CODE tags.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file name version.properties with the following data:
major.version=14
minor.version=234
I'm trying to write a grep expression to only put "14" to stdout. The following is not working.
grep "major.version=(+)" version.properties
What am I doing wrong? (6 Replies)
Discussion started by: obfunkhouser
6 Replies
2. Red Hat
Hi Experts.
I need to install one help library in Fedora 13 and I got the installation document for it:
---------------------------------------------------
users need their own J2EE web application server to be able
to complete this installation. The server must support J2EE - JSP... (3 Replies)
Discussion started by: orma
3 Replies
3. Shell Programming and Scripting
I have a txt file that contains multiple occurrances of:
<MoreFlag>Y</MoreFlag>
I want to update these to:
MorePACFlag>Y</MorePACFlag>
How would I do this?
Cheers
Paul (2 Replies)
Discussion started by: runnerpaul
2 Replies
4. Solaris
I am using a solaris zone in Sun blade-T6320 which has a java version "1.5.0_18" i want to update it to 1.6.0.16 or higher , how can i do that , does i need to add the new java package to the global server or just instal it in the zone itself.
do i need to remove the older version or and install... (1 Reply)
Discussion started by: Sojourner
1 Replies
5. UNIX for Dummies Questions & Answers
We have a version for every file like RHZ 1.0 / Ver 1.4.2 etc.
Whenever I place a new file with same file name i want the version to get auto upgraded. So can anyone suggest code..
Eg:
RHX 1.0 -> RHZ 1.1
Ver 1.4.2. -> Ver 1.4.3 (1 Reply)
Discussion started by: krishna87
1 Replies
6. Red Hat
Hello All,
I am trying to upgrade redhat from 5.6 to 5.8.
When i use
Code:
yum update -y
it installs 5.9
I dont want 5.9, instead i would like to upgrade to 5.8
is there anyway to specify a version when you are doing
Code:
yum update (4 Replies)
Discussion started by: adam25ca
4 Replies
7. Shell Programming and Scripting
I have a text file like this:
subject1:LecturerA:10
subject2:LecturerA:40
if I was given string in column 1 and 2 (which are subject 1 and LecturerA) , i need to update 3rd field of that line containing that given string , which is, number 10 need to be updated to 100 ,for example.
The... (6 Replies)
Discussion started by: bmtoan
6 Replies
8. UNIX for Beginners Questions & Answers
In the awk below I am trying to cp and paste each matching line in f2 to $3 in f1 if $2 of f1 is in the line in f2 somewhere. There will always be a match (usually more then 1) and my actual data is much larger (several hundreds of lines) in both f1 and f2. When the line in f2 is pasted to $3 in... (4 Replies)
Discussion started by: cmccabe
4 Replies
9. UNIX for Beginners Questions & Answers
I attached both picturehttps://1drv.ms/t/s!Aoomvi55MLAQh1jODfUxa-xurns_ and *.txt file of a sample work file. In this file Reactions which only start with "r1f", "r2f", "r3f"......and so on. And for each reaction the reaction rates is situated couple of lines later with a "+" sign.
For each... (1 Reply)
Discussion started by: Atta
1 Replies
LEARN ABOUT DEBIAN
ocf_heartbeat_iscsi
OCF_HEARTBEAT_ISCSI(7) OCF resource agents OCF_HEARTBEAT_ISCSI(7)
NAME
ocf_heartbeat_iscsi - Manages a local iSCSI initiator and its connections to iSCSI targets
SYNOPSIS
iscsi [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION
OCF Resource Agent for iSCSI. Add (start) or remove (stop) iSCSI targets.
SUPPORTED PARAMETERS
portal
The iSCSI portal address in the form: {ip_address|hostname}[":"port] (required, string, no default)
target
The iSCSI target IQN. (unique, required, string, no default)
discovery_type
Target discovery type. Check the open-iscsi documentation for supported discovery types. (optional, string, default sendtargets)
iscsiadm
open-iscsi administration utility binary. (optional, string, default iscsiadm)
udev
If the next resource depends on the udev creating a device then we wait until it is finished. On a normally loaded host this should be
done quickly, but you may be unlucky. If you are not using udev set this to "no", otherwise we will spin in a loop until a timeout
occurs. (optional, string, default yes)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 120.
stop
Stops the resource. Suggested minimum timeout: 120.
status
Performs a status check. Suggested minimum timeout: 30.
monitor
Performs a detailed status check. Suggested minimum timeout: 30. Suggested interval: 120.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 5.
methods
Suggested minimum timeout: 5.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.
EXAMPLE
The following is an example configuration for a iscsi resource using the crm(8) shell:
primitive p_iscsi ocf:heartbeat:iscsi
params
portal=string
target=string
op monitor depth="0" timeout="30" interval="120"
SEE ALSO
http://www.linux-ha.org/wiki/iscsi_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_ISCSI(7)