How can I grep for a certain letter that only shows on the 3rd letter or character.
ex:
ASGHDY
SHTYRD
SDTYRD
IGIKGD
I only want the TY part of the 3rd character
so output would only be SHTYRD and DDTYRD - I only want the TY on the 3rd character.
THANKS (5 Replies)
Hi,
I am learning unix shell scripting. I want to create a utiltiy. I will explain about that. When I run my utility, it will display only the directories of a particular directory like the below output. For example
My current directory is /home/balamv and it has 3 directories called Andrew,... (9 Replies)
Hi
I would like to accept in a string from user like
username/pwd@dbname
suppose the user does not input @ then i should throw an error that @ symbol missing . How to achieve this
Thanks in advance
Suresh (6 Replies)
Hi,
For example, i have a string
"123 456 789 abc 111 222 333"
and I would like to delete all the characters before abc so that it becomes
"abc 111 222 333"
how can i do that in unix? using sed?
note: I actually don't know how many words/charachters before "abc", so the "cut"... (9 Replies)
Hi All,
Can anyone help me please,
I have a word like below.
6,76
I want to read this word and check if it has "," (comma) and if yes then i want to replace it with "." (dot). That means i want to be changed to 6.76
If the word doesnot contain "," then its should not be changed.
Eg.
... (6 Replies)
Friends, I'm looking for a command that delete the first tho caractere in a word. Here is an exp :
I want to replace "20091001" by "091001"
or "replace" by "place"
Thx, (13 Replies)
Hi friends,
I am working in a korn shell. i want to know the command which gives me the previous one character and next one character of a given keyword in a string?
for exmaple:
input string: /bin/dir/folder1/.proc_name^folderone
Keyword: proc_name
output : .^
... (10 Replies)
Hi,
I have a command in my bash script, searchDirectoryName.sh:
DIR_NAME=$(find . -type d)
echo "${DIR_NAME}"
.
./Dir1
./Dir1/1.0.2.1
./Dir2
./Dir2/1.1
./Dir3
./Dir3/2.2.1
How can I select only following directory names with second subdirectoies and without first ./ in the... (3 Replies)
How can I represent the position of 1 (considering only the 1s after the colon) in the word from field5 and above; counting from right to left.
Input:
TT-124 06-03-14 08-02-10 FAS CAT1:10
TT-125-1 05-03-14 10-06-08 CAS CAT2:1010 FAT1:10000
TT-125-3 07-03-14 11-02-06 FAS FAT1:1101... (6 Replies)
Hi,
I have a file which looks like this
id integer,
name string,
create_dt date,
I want to remove all words that are present before the character ,
My output should be
id,
name,
create_dt,
Thanks
wah (2 Replies)
Discussion started by: wahi80
2 Replies
LEARN ABOUT HPUX
vxse
vxse(1M)vxse(1M)NAME
vxse - Storage Expert rules
SYNOPSIS
/opt/VRTS/vxse/vxvm/vxse_rule [-g diskgroup] [-d defaults_file] [-v] check
/opt/VRTS/vxse/vxvm/vxse_rule [-g diskgroup] [-d defaults_file] [-v] info
/opt/VRTS/vxse/vxvm/vxse_rule [-g diskgroup] [-d defaults_file] [-v] list
/opt/VRTS/vxse/vxvm/vxse_rule [-g diskgroup] [-d defaults_file] [-v] run [attribute=value...]
DESCRIPTION
Storage Expert consists of a set of simple commands that collects VxVM configuration data and compares it with "best practice." Storage
Expert then produces a summary report that shows which objects do not meet these criteria and makes recommendations for VxVM configuration
improvements.
These user-configurable tools help you as an administrator to verify and validate systems and non-optimal configurations in both small and
large VxVM installations.
Storage Expert components include a set of rule scripts and a rules engine. The rules engine runs the scripts and produces ASCII output,
which is organized and archived by Storage Expert's report generator. This output contains information about areas of VxVM configuration
that do not meet the set criteria. By default, output is sent to the screen, but you can redirect it to a file using standard UNIX redi-
rection.
KEYWORDS
check Lists the default values used by a rule's attributes.
info Describes what a rule does.
list Lists the attributes of a rule that can be set.
run Runs a rule. If one or more attribute-value pairs are specified, these override the values set in the defaults file.
OPTIONS -d defaults_file
Specifies an alternate default attribute-values file to the standard file, /etc/default/vxse.
-g diskgroup
Specifies the disk group to be examined instead of the default disk group (see vxdg(1M)).
-v Specifies verbose output format.
EXAMPLES
Note: The executable rule files are located in the directory, /opt/VRTS/vxse/vxvm. These examples assume that this directory has been
added to the PATH variable.
Discover what the vxse_stripes2 rule does:
vxse_stripes2 info
Display the attributes that are available for the vxse_drl1 rule:
vxse_drl1 list
Display the default values of the attributes for the vxse_stripes2 rule:
vxse_stripes2 check
Run the vxse_volplex rule on the mydg disk group:
vxse_volplex -g mydg run
Run the vxse_drl2 rule on the mydg disk group with the value of the large_mirror_size attribute set to 30MB:
vxse_drl2 -g mydg run large_mirror_size=30m
Run the vxse_srl2 rule using the default attribute values that are set in the file mydefaultsfile:
vxse_drl2 -d mydefaultsfile -g mydg run
FILES
/etc/default/vxse Standard attribute values file for vxse rules.
/opt/VRTS/vxse/vxvm Directory containing executable rules.
NOTES
See the "Using Veritas Storage Expert" chapter in the Veritas Volume Manager Administrator's Guide for a description of the rules and their
attributes.
SEE ALSO vxdg(1M), vxintro(1M)
Veritas Volume Manager Administrator's Guide
VxVM 5.0.31.1 24 Mar 2008 vxse(1M)