Creating a larger .xml file from a template(sample file)
Dear All,
I have a template xml file like below.
I want to create an actual .xml like below.
For 2 instances of my signals output shown below, preserving all header, footer and other formatting tags.
where STRING1,STRING2 etc are from one more text file signal.txt.
cat Signal.txt
Currently I am manually replicating the <SignalPreference>.. </SignalPreference> tag portions and replacing <SignalName>STRING </SignalName> with my desired string based on line number using grep and sed commands. But this is becoming a very tedious task as I have many tags to replace with.
Hi All,
My requirement is create an unix script to parse the xml file and display the values of the Elements/value between the tags on console. Like say, I would like to fetch the value of errorCode from the below xml which is 'U007' and display it. Can we use SED command for this? I have tried... (10 Replies)
Hello,
Can anybody please tell me the command to find out the filesystem or a file which is consuming larger disk space sing i want to find out the file and want to compress it
please help me out
any help would be appreciated (6 Replies)
i know there are tons n tons of documentation out there to help me out to understand this.. but wen i read it, its to confusing for me.. i would really wish a kind hearted person on this forum can come out with a sample spec file for the example steps that i need for the RPM. This will make me... (0 Replies)
Dear Members,
I have a table in Oracle DB and one of its column name is INFO which has data in text format which we need to fetch in a script and create an xml file of a new table from the input.
The contents of a single cell of INFO column is like:
Area:app - aam
Clean Up Criteria:... (0 Replies)
Hi, long time reader, first time poster.
I've done some searching so please if this is a repeated post excuse the duplicate, but what I have are two files roughly like so:
File 1:
A W
B X
C Y
D Z
File 2:
A 1
C 2
D 3
And what I would like to get out is... (4 Replies)
Hi All,
Can someone tell me how can we create same xml tag lines based on the number of lines present in other file and replace the Name variable vaule present in other file.
basically I have this xml line
<typ:RequestKey NameType="RIC" Name="A1" Service="DDA"/>
and say I... (4 Replies)
Hi,
I have hit a bit of a brick wall.:confused:
need the following code edited:
echo "<?xml version=\"1.0\"?><dailyBalance_ROWSET>" > ${DataDir}/${extract_script}${ApplicationDate}.${Suffix}
RunSQL ${extract_script} ${ActionFlag}
echo "</dailyBalance_ROWSET>" >>... (2 Replies)
Hi,
I have a .csv file that contains a variety of fields for 60 clients: USERNAME, PASSWORD, and COMMENTS. I have a template file which contains a great deal of data for each client and has the fields USERNAME, PASSWORD, and COMMENTS that has to be filled with the values of USERNAME,... (1 Reply)
Discussion started by: mojoman
1 Replies
LEARN ABOUT MINIX
elvrec
ELVREC(1) General Commands Manual ELVREC(1)NAME
elvrec - Recover the modified version of a file after a crash
SYNOPSIS
elvrec [preservedfile [newfile]]
DESCRIPTION
If you're editing a file when elvis dies, the system crashes, or power fails, the most recent version of your text will be preserved. The
preserved text is stored in a special directory; it does NOT overwrite your text file automatically.
The elvrec program locates the preserved version of a given file, and writes it over the top of your text file -- or to a new file, if you
prefer. The recovered file will have nearly all of your changes.
To see a list of all recoverable files, run elvrec with no arguments.
FILES
/usr/preserve/p*
The text that was preserved when elvis died.
/usr/preserve/Index
A text file which lists the names of all preserved files, and the names of the /usr/preserve/p* files which contain their preserved
text.
BUGS
elvrec is very picky about filenames. You must tell it to recover the file using exactly the same pathname as when you were editing it.
The simplest way to do this is to go into the same directory that you were editing, and invoke elvrec with the same filename as elvis. If
that doesn't work, then try running elvrec with no arguments, to see exactly which pathname it is using for the desired file.
Due to the permissions on the /usr/preserve directory, on UNIX systems elvrec must be run as superuser. This is accomplished by making the
elvrec executable be owned by "root" and setting its "set user id" bit.
If you're editing a nameless buffer when elvis dies, then elvrec will pretend that the file was named "foo".
AUTHOR
Steve Kirkendall
kirkenda@cs.pdx.edu
ELVREC(1)