What Operating System and version are you running? It really matters for this type of question because there are extensions to standard unix commands available in some versions of Linux which could help.
Hi all,
Iam trying to sort the contents of the file based on the position of the file.
Example:
$cat sample.txt
0101020060731 ## Header record
1c1 Berger Awc ANP20070201301 4000.50
1c2 Bose W G ANP20070201609 6000.70
1c2 Andy CK ANP20070201230 28000.00... (3 Replies)
Hi Guru's,
I need to create 3 files with the contents "ABC" using single command.
Iam using:
echo "ABC" > file1.txt file2.txt file3.txt
the above command is not working. pls help me...
With Regards / Ganapati (4 Replies)
Hi,
sorry for bothering with this easy problem but I can't understand...
I've a file like this:
"4","0x23a3"
"5","0x4234"
"11",""
"20",""
"11132","0x6456"
I would like to create a file like this:
4,23a3
5,4234
11,999999
20,999999
11132,6456
I've tried:
cat INPUT.txt | sed -e... (7 Replies)
Hi experts
I want your help to change the file format to my wanted version, please give me a hand thanks
$cat file
install pass
make os pass
make build kernel failed
usb storage pass
chane to
| *install* | *make os* | *make build kernel* | *usb storage* |
| pass | pass... (7 Replies)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
Hi all.
I have a .txt file that I need to sort it
My file is like:
1- 88 chain0 MASTER (FF-TE) FFFF 1962510 /TCK T FD2TQHVTT1 /jtagc/jtag_instreg/updateinstr_reg_1 dff1 (TI,SO)
2- ... (10 Replies)
Hi Experts,
I have a string with colon delimited, want 2nd colon to be changed to a pipe.
data:
101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:
I am trying with sed, but can change only 1 occurance:
echo "101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:" | sed 's/:/|/2'... (5 Replies)
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Hello everyone,
Since my python knowledge is limimted, I've challenged myself to learn as much as possible to help me with my carrere. I'm currently trying to convert a shell script to python, just to give myself a task. There is one section of the script that I'm having issues converting and... (2 Replies)
Discussion started by: da1
2 Replies
LEARN ABOUT HPUX
vxusertemplate
vxusertemplate(1M)vxusertemplate(1M)NAME
vxusertemplate - create and administer user templates
SYNOPSIS
vxusertemplate -d file [-f] create [template [template ...]]
vxusertemplate [-f] create template_name
[description=description] [rules=rules]
[capability=capability(var=value,...)[,capability...]]
vxusertemplate delete template
vxusertemplate help [keywords | options | attributes]
vxusertemplate list
vxusertemplate print template [template ... ]
DESCRIPTION
The vxusertemplate utility provides a command line interface for the creation and administration of user-defined or user templates that may
be used with the Veritas Intelligent Storage Provisioning (ISP) feature of Veritas Volume Manager (VxVM).
The operations that can be performed by vxusertemplate are selected by specifying the appropriate keyword on the command line. See the KEY-
WORDS section for a description of the available operations.
KEYWORDS
create Creates one or more user templates, whose definitions can be read from a definitions file or entered on the command line.
delete Deletes a user template.
help Displays information on usage, keywords, options and attributes.
list Lists all user templates.
print Prints detailed information about one or more user templates.
OPTIONS -d file Specifies a file that contains user template definitions
-f Forces an operation that is not usually allowed by vxusertemplate. This option must be specified if the user template definition
differs from the existing definition in the configuration database.
EXAMPLES
Create the user templates ut1, ut2 and ut3 from the definitions in the file ut1.txt:
vxusertemplate -d ut1.txt create ut1,ut2,ut3
Delete the user template myreliabletemplate:
vxusertemplate delete myreliabletemplate
List all user templates:
vxusertemplate list
Print details of the user template mytemplate:
vxusertemplate print mytemplate
EXIT STATUS
The vxusertemplate utility exits with a non-zero status if the attempted operation fails. A non-zero exit code is not a complete indicator
of the problems encountered, but rather denotes the first condition that prevented further execution of the utility.
SEE ALSO vxtemplate(1M), vxvoladm(1M)
Veritas Storage Foundation Intelligent Storage Provisioning Administrator's Guide
VxVM 5.0.31.1 24 Mar 2008 vxusertemplate(1M)