I've got a configuration file that is filled with xml text statements for example:
<...../>
<...../>
<...../>
<data id="java-options" value="-server -Djava.security.policy..../>
<...../>
<...../>
<...../>
I want to write a korn shell script that will go to this specific line and add a... (2 Replies)
Hi..
How to search for multiple words in a single line using grep?.
Eg: Jack and Jill went up the hill
Jack and Jill were best friends
Humpty and Dumpty were good friends too
----------
I want to extract the 2nd statement(assuming there are several statements with... (11 Replies)
Hi
Is it possible to do the following in a single command
/usr/xpg4/bin/sed -e '/rows selected/d' /aemu/CALLAUTO/callauto.txt > /aemu/CALLAUTO/callautonew.txt
/usr/xpg4/bin/sed -e '/^$/d' /aemu/CALLAUTO/callautonew.txt > /aemu/CALLAUTO/callauto_new.txt
exit (1 Reply)
Hello,
Need help substituting a particular word in a file having a single line but no newline character at the end.
I was trying to use sed but it doesn't work probably because there is no newline char at the end of the line.
$ cat hlq_detail
/outputs/alvan23/PDFs/bills
$ cat... (5 Replies)
The file contains one line of text followed by a number. I want to take the number X at the end, take it out and display the last X words. X is the key telling me how many words from the end that I want and X will always be less than the number of words, so no problem there.
Example input and... (4 Replies)
FOLKS ,
i have a text file that is generated automatically of an another korn shell script, i want to bring in the fifth line of the text file in to my korn shell script and look for a particular word in the line . Can you all share some thoughts on this one.
thanks...
Venu (3 Replies)
I would like to add a line to the end of a single column text file. How do I go about doing that?
Input:
BEGIN
1
2
3
Output:
BEGIN
1
2
3
END
Thanks! (1 Reply)
I am trying to build a sinkhole for BIND. I created a master zone file for malicious domains and created a separate conf file, but I am stuck.
I have a list of known bd domains that is updated nightly. The file simply contains the list of domains, one on each line:
Bad.com
Bad2.com... (4 Replies)
hi I made this simple script to extract data and pretty much is a list and would like to extract data of two words separated by commas and I would like to make a new text file that would list these extracted data into a list and each in a new line.
Example that worked for me with text file... (5 Replies)
Discussion started by: dandaryll
5 Replies
LEARN ABOUT SUNOS
scrollkeeper-devel
scrollkeeper-devel(1) User Commands scrollkeeper-devel(1)NAME
scrollkeeper-devel, scrollkeeper-extract, scrollkeeper-gen-seriesid, scrollkeeper-preinstall - utilities for working with OMF documents and
the scrollkeeper database
SYNOPSIS
scrollkeeper-extract file stylesheet output [stylesheet output...]
scrollkeeper-gen-seriesid
scrollkeeper-preinstall docfile omf-file1 omf-file2
DESCRIPTION
scrollkeeper-extract is used internally by scrollkeeper to convert DocBook/SGML files to Docbook/XML files if necessary, and to apply a
number of transformations to the XML file to extract information from the XML file.
scrollkeeper-gen-seriesid generates a globally unique series ID for an OMF file.
scrollkeeper-preinstall reads omf_file1, changes the URL attribute of the identifier tag to doc_file and writes the output to omf_file2.
scrollkeeper-preinstall can be used during the document installation process to point OMF files to the correct location on the target
machine before registration in the scrollkeeper database.
OPTIONS
None.
OPERANDS
The following operands are supported:
docfile Specifies the file path to the document that omf-file1 describes.
file Specifies the XML file that is to be used as input for XSLT transformations.
omf-file1 Specifies the OMF file that contains metadata for docfile.
omf-file2 Specifies the file created by scrollkeeper-preinstall, which contains the same data as omf-file1 except that the URL
attribute of the identifier tag is changed to docfile.
output Specifies the file that contains the result when the preceding stylesheet has been applied to file.
stylesheet Specifies an XSLT transformation to apply.
EXAMPLES
Example 1: Creating a New scrollkeeper Series ID
example% scrollkeeper-gen-seriesid
Example 2: Extracting a TOC From a Document
example% scrollkeeper-extract /path/to/xml/file.xml /usr/share/scrollkeeper/stylesheets/toc.xsl /path/to/toc.xml
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/scrollkeeper-extract
The command-line executable for the scrollkeeper-extract application.
/usr/bin/scrollkeeper-gen-seriesid
The command-line executable for the scrollkeeper-gen-seriesid application.
/usr/bin/scrollkeeper-preinstall
The command-line executable for the scrollkeeper-preinstall application.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-libs-devel |
+-----------------------------+-----------------------------+
|Interface stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO scrollkeeper(1)NOTES
Written by Sander Vesik, Sun Microsystems Inc., 2003.
SunOS 5.10 01 Apr 2003 scrollkeeper-devel(1)