08-31-2010
Thanks alot that worked
is there any chance to add <XML> at the start of the file and </XML> at the end . I will be appending these kind of records to the same file daily .
example :
day 1: <XML>
<tid>s99152g</tid> <dir>33420</dir> <date>29/Aug/2010</date> <time>02:46:48</time> <url>/service/claimadmin/quicklop/dcx</url>
<tid>s07560k</tid> <dir>33132</dir> <date>29/Aug/2010</date> <time>03:31:55</time> <url>/service/claima
dmin/quicklop/dcx</url>
</XML>
day 2 :
<tid>s99152g</tid> <dir>33420</dir> <date>29/Aug/2010</date> <time>02:46:48</time> <url>/service/claimadmin/quicklop/dcx</url>
<tid>s07560k</tid> <dir>33132</dir> <date>29/Aug/2010</date> <time>03:31:55</time> <url>/service/claima
dmin/quicklop/dcx</url>
<tid>s07560k</tid> <dir>33132</dir> <date>29/Aug/2010</date> <time>03:44:47</time> <url>/service/claima
dmin/quicklop/dcx</url>
</XML>
new records needs to be added between these <XML> tags is it possible if so please let me know .
Thanks in advance
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have several handreds of text files. The format of file looks like:
column1 column2 column3 column4 column5
id1 definition1 name1 fieldid comm1
id2 definition2 name2 fieldid ... (4 Replies)
Discussion started by: ssshen
4 Replies
2. Shell Programming and Scripting
ok, are there any other file editting commands out there other than the below that comes with sunsolaris & linux
vi, emacs, ed, (1 Reply)
Discussion started by: Terrible
1 Replies
3. Shell Programming and Scripting
Hi,
I am having sequence of process ids in one file.
My file contents is (Output of fuser someobject.so).
654 14583 17890 25902
This no. of processes may vary depends up on the object.
I want to check all the processes one by one. If i want to apply egrep, I need to... (3 Replies)
Discussion started by: sharif
3 Replies
4. UNIX for Dummies Questions & Answers
I have two files. One has:
ID# 0 a b c d e f g h i j k....................~2 milion columns
ID# 0 l m n o p q r s t u v....................~2 milion columns
.
.
.
~6000 lines
Other has:
ID# 1
or
ID# 2
.
.
~6000 lines (2 Replies)
Discussion started by: polly_falconer
2 Replies
5. Shell Programming and Scripting
So, I want to read line-by-line a text file with unknown number of files....
So:
a=1
b=1
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
done
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
Discussion started by: hakermania
3 Replies
6. Shell Programming and Scripting
Hi,
i have file which contains data as below(Only sample shown, it may contain more data similar to the one shown here)
i need to read this file line by line and generate an output file like the one below
i.e based on N value the number of MSISDNs will vary, if N=1 then the following... (14 Replies)
Discussion started by: aemunathan
14 Replies
7. Linux
Hi
I have to replace a pattern found in the first uncommented line in a file. The challenge I'm facing is there are several such similar lines but I have to edit only the first uncommented line.
Eg:
#this is example
#/root/xyz:Old_Pattern
/root/xyz:Old_Pattern
/root/xyz:Old_Pattern
... (10 Replies)
Discussion started by: Stoner008
10 Replies
8. Shell Programming and Scripting
robert (6 Replies)
Discussion started by: robert89
6 Replies
9. Shell Programming and Scripting
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
Discussion started by: Ferocci
8 Replies
10. Shell Programming and Scripting
Hi all,
I have a log file say Test.log that gets updated continuously and it has data in pipe separated format. A sample log file would look like:
<date1>|<data1>|<url1>|<result1>
<date2>|<data2>|<url2>|<result2>
<date3>|<data3>|<url3>|<result3>
<date4>|<data4>|<url4>|<result4>
What I... (3 Replies)
Discussion started by: pat_pramod
3 Replies
LEARN ABOUT FREEBSD
rpc_gss_set_svc_name
RPC_GSS_SET_SVC_NAME(3) BSD Library Functions Manual RPC_GSS_SET_SVC_NAME(3)
NAME
rpc_gss_set_svc_name -- Associate a GSS-API service principal with an RPC service
LIBRARY
RPC GSS-API Authentication Library (librpcsec_gss, -lrpcsec_gss)
SYNOPSIS
#include <rpc/rpcsec_gss.h>
bool_t
rpc_gss_set_svc_name(const char *principal, const char *mechanism, u_int req_time, u_int program, u_int version);
DESCRIPTION
This function registers a service principal which will be used to authenticate RPCSEC_GSS security contexts for a given RPC program and ver-
sion.
PARAMETERS
principal A string representing the service principal in the form "service@hostname"
mechanism The name of the security mechanism
req_time The time in seconds that the service credentials should remain valid. See gss_acquire_cred(3) for more details. principal.
program RPC program number for this service
version RPC program version for this service
RETURN VALUES
Returns TRUE if the service principal was registered or FALSE otherwise.
SEE ALSO
gss_acquire_cred(3), gssapi(3), rpc(3), rpcset_gss(3)
HISTORY
The rpc_gss_set_svc_name function first appeared in FreeBSD 8.0.
AUTHORS
This manual page was written by Doug Rabson <dfr@FreeBSD.org>.
BSD
January 26, 2010 BSD