10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Suppose I have a word which is repeating in a string continuously. I have a set of intervals. Then how do I find the number occurrences of that word in those intervals and their location of occurrences. For example - Suppose there is a huge string anfie.......sirn of 10000 letters. Now the word... (2 Replies)
Discussion started by: ANKIT ROY
2 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I want to add a letter to the end of a string if it repeats in a column.
so if I have a file like this:
DOG001
DOG0023
DOG004
DOG001
DOG0023
DOG001
the output should look like this:
DOG001-a
DOG0023-a
DOG004
DOG001-b (15 Replies)
Discussion started by: verse123
15 Replies
3. Shell Programming and Scripting
cat mylist
First_NAME Gender
Mike M
Sara F
Raya M
Sara F
Fibi F
Mike M
Mike M
Micheal M
can someone please help me to get a script to cacluate the number of repetions for each (First name... (3 Replies)
Discussion started by: Sara_84
3 Replies
4. Programming
How can I get all combinations of 5 words from 10 words.
For example I have 3 words and I want to get all combinations of 2 words.
"A", "B", "C" it would like AB, BC, AC.
Maybe you know some usefull code or example.
Thanx a lot.
P.S. Sorry if I'm not right enough cause I don't know English... (2 Replies)
Discussion started by: romeo5577
2 Replies
5. Shell Programming and Scripting
Hi.
I have a for loop that I use to extract integer values in a shell script (ksh). Now, I would like to add the values. My preference, from my c programming days, would be to do something like the commented out line below in the for loop. However, this is not recognised. So I use the line... (2 Replies)
Discussion started by: mikem22
2 Replies
6. Solaris
I have 3 variables with different information.. they look like this (row-wise aswell):
Variable1 =
Roland
Kalle
Dalius
Variable2 =
ake123
ler321
kaf434
Variable3 =
Richardsen
Sworden
Lokthar
How can I sort them by variable3 alphabetical and add them into the same output so... (0 Replies)
Discussion started by: Prantare
0 Replies
7. Shell Programming and Scripting
Hi
I am trying to add variables(float values) in a unix script but am getting an error
value=`expr $a + $b + $c`
The error I am getting is "expr: non-numeric argument"
I guess it has got to something with the decimal points.
Plz help (13 Replies)
Discussion started by: akashtcs
13 Replies
8. Programming
I have a structure which contains n number of elements. For example:
stFruits : apple, grapes, strawberry, pear, kiwi, melon, papaya, mango, orange, sweetlime ..... etc
Now i have to write a for loop as follows:
int i;
int j;
j=stFruits.apple+stFruits.grapes+stFruits.pear+.... and so... (3 Replies)
Discussion started by: jazz
3 Replies
9. UNIX for Advanced & Expert Users
Hi All,
I'm just new to UNIX, does anyone know how to create a batch file in UNIX that does the following routines:
1.) process multiple files in a directory
in DOS, I set my sample input file as: set INPUTFILE=%1
in UNIX>> ????
2.) every file to be processed by executing a program... (1 Reply)
Discussion started by: kimpot7268
1 Replies
10. UNIX for Dummies Questions & Answers
Is anyone know some scripts to generate random number without repetition using bash; for example generate 10 different random numbers.
Thanks (8 Replies)
Discussion started by: asal_email
8 Replies
vxevac(1M) vxevac(1M)
NAME
vxevac - evacuate all volumes from a disk
SYNOPSIS
/etc/vx/bin/vxevac [-g diskgroup] [-k [-O operation-tag]] [-t tasktag]
medianame [new_medianame...]
/etc/vx/bin/vxevac [-g diskgroup] [-O operation-tag] [-t tasktag]
commit medianame
/etc/vx/bin/vxevac [-g diskgroup] [-O operation-tag] [-t tasktag]
rollback medianame
DESCRIPTION
The vxevac utility moves subdisks off the specified Veritas Volume Manager (VxVM) disk (medianame) to the specified destination disks
(new_medianame...). If no new_medianame arguments are specified, any non-volatile, non-reserved disks can be used as destination disks.
Subdisks that are part of unmirrored striped plexes are moved by moving the entire plex to a new location.
Note: This operation assumes that there is sufficient space in the disk group for the operation to complete. If the process runs out of
space, some of the volumes on the disk may not be evacuated.
vxevac is usually called from the vxdiskadm menus.
A medianame argument is an administrative name used to define a disk within a disk group.
The evacuation of a volume can be committed or rolled back if the -k option is specified. Such an operation is referred to as a "tentaive
move." In addition, the -O option may be used to define a tag for a given tentative move operation.
KEYWORDS
commit Completes tentative subdisk move operations by removing the source subdisks, and replacing them with the target subdisks. The -O
option can be used to specify an operation tag for the subdisks whose tentative move is to be committed. If no operation tag is
specified, the commit operation is applied to all completed tentative subdisk moves for the specified media. The commit opera-
tion fails if a tentative move or a recovery resynchronization is in progress.
rollback Reverses tentative subdisk move operations by removing the target subdisks, and leaving the source subdisks intact. The -O
option can be used to specify an operation tag for the subdisks whose tentative move is to be rolled back. If no operation tag
is specified, the rollback operation is applied to all completed tentative subdisk moves for the specified media. The rollback
operation fails if a tentative move or a recovery resynchronization is in progress.
OPTIONS
-g diskgroup
Specifies the disk group for the operation, either by disk group ID or by disk group name.
-k Initiates a subdisk move while preserving the source subdisks on the original plexes. The source and target subdisks are marked.
The tentative move operation can be committed or rolled back at a later time. If the -O option is used to specify a tag, this
tag can be used with the vxtask command to monitor, pause or abort such operations.
-O operation-tag
Specifies an operation tag that can be used to commit or roll back a completed tentative move operation. If an operation tag is
specified, a task tag is automatically set to the same value. However, setting a task tag does not imply the setting of an opera-
tion tag.
-t tasktag
Specifies an administrative operation to perform by the numeric identifier tasktag. See the vxtask(1M) manual page for informa-
tion on Veritas Volume Manager tasks.
SEE ALSO
vxassist(1M), vxdiskadm(1M), vxintro(1M), vxsd(1M), vxtask(1M)
VxVM 5.0.31.1 24 Mar 2008 vxevac(1M)