Thanks for the reply. I should have added the complete text file but there are other variables in the file and I want to just look for only this occurrence of:
so:
Would this apply?
---------- Post updated at 02:29 PM ---------- Previous update was at 02:25 PM ----------
[code]
this works but I need some clarification of the context of it.
Hello,
I have a file with many lines with below format:
\abc\\1234
jkl\\567
def\\345
\pqr\\567
\xyz\\234
Here, i need to do 2 things.
1. replace \\ with \
2. remove starting \
so output to be as below: (11 Replies)
Hi,
I am reading a file (GC_JAR.log) which has entries like:
511725.629, 0.1122672 secs]
525268.975, 0.1240036 secs]
527181.835, 0.2068215 secs]
527914.287, 0.2884801 secs]
528457.134, 0.2548725 secs]
I want to replace all the entries of "secs]" with just "secs"
Thus, the output... (4 Replies)
Hi everyone
I have file1 contains:
'7832'
' 8765
6543
I want a sed command that will format as:
'7832' , '8765' , '6543'
I tried
sed -e s/\'//g -e 's/^*//;s/*$//' file1 > file2
sed -e :a -e '$!N; s/\n/ /; ta' file2
which gives: 7832 8765 6543
I need some help to continue with... (5 Replies)
Hello All
Seeking the right one SED command.
My attempt is:
From orginal.txt by SED to target.txt
sed -i "/('outbound-callerid/a\$ext->add($context, $exten, '', new ext_SipAddHeader('P-Preferred-Identity', '<sip:${CALLERID(nummer)}@carrier.com>'));" orginal.txtWhat am make wrong?:wall:
... (5 Replies)
Hello Everyone,
I need to read an encrypted password from the user and update that value in an xml file. I am trying to use "sed" for searching the appropriate tag and replacing this new value that get from the user. Since the encrypted password can contain special characters(like /,\,&,etc),... (4 Replies)
Need help in escaping special characters in sed command.
Here is the the string which i am trying to find a replace with
From :- REQUEST_TYPE=PIXEL&MSG_ID={//MESSAGE_ID}
To :- REQUEST_TYPE=PIXEL&MSG_ID= X_EDELIVERY_MESSAGE_ID & BATCH_ID= X_EDELIVERY_BATCH_ID
Here is the sed command i am... (2 Replies)
Hi I'm trying to replace string1 by string2 in file homepage.htm as follows but is not working. Please Help:
sedsed -i "s@'://your server name:port/test/owa'@'://11.22.33.44:5555/pls/SAMPLE'@g" homepage.htm
Where,
String1 ://your server name:port/test/owa
String2... (3 Replies)
Hi,
I have a file with this line, it's always in the first line:
I want to remove these special characters: ´╗┐
file1
´╗┐\\bar\c$\test2\;3.348.118 Bytes;160 ;3
\\bar\c$\test\;35 Bytes;2 ;1
I want the same file to be only
\\bar\c$\test2\;3.348.118 Bytes;160 ;3
\\bar\c$\test\;35... (4 Replies)
I have the foolowing data file:
File1
<p name="A">5004</p>
<p name="B">5004</p>
<p name="C">5004</p>
<p name="A">15004</p>
<p name="B">15004</p>
<p name="C">15004</p>
In a while loop using sed (100 of line need to be replace), I need the output to File3:... (2 Replies)
Discussion started by: bobo
2 Replies
LEARN ABOUT SUSE
xsd
xsd(1)xsd(1)NAME
xsd - Mono's utility for generating schema or class files
SYNOPSIS
xsd <schema.xsd> /classes [options]
xsd <schema.xsd> /dataset [options]
xsd <assembly>.dll|<assembly>.exe [options]
xsd <instance.xml> [<instance.xml> ...] [options]
DESCRIPTION
xsd is a tool for intended to complement the XML serialization support of Mono. It can do the following tasks:
Generate serializable classes
From a given XML schema, generate a class that can be used to read and write xml documents that conform that schema (/classes
option).
Generate typed datasets
From a given XML schema, generate a typed DataSet class that can be used to read and write xml documents that conform that schema
(/dataset option).
Generate XML schemas
From a given assembly and an optional type name, generate an XML schema that can be used to validate the xml documents that can be
obtained by serializing objects of that type. If no type is provided, xsd generates a schema for all types in the assembly. When
specifying the assembly name do not include the file extension (.dll or .exe). xsd will look for the assembly using the standard
assembly loading rules.
Infer XML schemas
From a given set of XML documents, infer the XML schema that can be used to validate those documents.
OPTIONS
The following options are available:
/element:name /e:name
Specifies the name of the XML schema element for which a class or a dataset has to be generated.
/namespace:name /n:name
Specifies the namespace of the XML schema element for which a class or a dataset has to be generated.
/language:name /l:name
Specifies the programming language to use for the generated code. The only supported languages are CS (C#) and VB (Visual
Basic.NET).
/generator:type,assembly /g:type,assembly
Indicates xsd.exe to use custom CodeDomProvider to generate code. The type name must be full name. Assembly name is a local file
name that is going to be loaded. The specified Type must have the default constructor.
/outputdir:path /o:path
Specifies the directory where to generate the code or schemas.
/type:name /t:name
Specifies the full name of the type (including namespace) for which to generate the XML schema.
/help /h
Show usage help.
AUTHORS
Lluis Sanchez Gual (lluis@ximian.com)
Atsushi Enomoto (atsushi@ximian.com)
LICENSE
xsd is released under the terms of the GNU GPL.
SEE ALSO disco(1), soapsuds(1), mono(1), mcs(1), wsdl(1)xsd(1)