03-03-2016
Hello Narendra921631,
Welcome to forums, request you to please use code tags as per forum rules for commands/inputs/codes which you are using into your posts.
Now coming onto your requirement, please provide us following details.
i- It is always good to let us know your O.S details
ii- Please re-phrase your requirement again here, as there are some confusions here eg->
a- From which line to which line you need to split the files?
b- What should be file names which you need to get after splitting?
c- Is there any other requirement too here, along with these above?
Please let us know above points so that we could help you in same, hapy learning
and enjoy useful posting
.
NOTE: Adding the RULES for forums link too here for your help.
https://www.unix.com/misc.php?do=cfrules
Thanks,
R. Singh
Last edited by RavinderSingh13; 03-03-2016 at 04:47 AM..
Reason: Added a note here.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all
i have a some huge html files (500MB to 1GB). Each file has multiple
<html></html> tags
<html>
.................
....................
....................
</html>
<html>
.................
....................
....................
</html>
<html>
.................... (5 Replies)
Discussion started by: uttamhoode
5 Replies
2. Shell Programming and Scripting
To split the files
Hi,
I'm having a xml file with multiple xml header. so i want to split the file into multiple files.
Test.xml
---------
<?xml version="UTF_8">
<emp: ....>
<name>a</name>
<age>10</age>
</emp>
<?xml version="UTF_8">
<emp: ....>
<name>b</name>
<age>10</age>... (11 Replies)
Discussion started by: sasi_u
11 Replies
3. Shell Programming and Scripting
Hi All,
I'm stuck with adding multiple lines(irrespective of line number) to a file before a particular xml tag. Please help me.
<A>testing_Location</A>
<value>LA</value>
<zone>US</zone>
<B>Region</B>
<value>Russia</value>
<zone>Washington</zone>
<C>Country</C>... (0 Replies)
Discussion started by: mjavalkar
0 Replies
4. Shell Programming and Scripting
HI All,
I have to split a xml file into multiple xml files and append it in another .xml file. for example below is a sample xml and using shell script i have to split it into three xml files and append all the three xmls in a .xml file. Can some one help plz.
eg:
<?xml version="1.0"?>... (4 Replies)
Discussion started by: ganesan kulasek
4 Replies
5. Shell Programming and Scripting
Hi All,
I have more than half million lines of XML file , wanted to split in four files in a such a way that top 7 lines should be present in each file on top and bottom line of should be present in each file at bottom.
from the 8th line actual record starts and each record contains 15 lines... (14 Replies)
Discussion started by: ajju
14 Replies
6. Shell Programming and Scripting
Hi Everyone,
I'm new here and I was checking this old post:
/shell-programming-and-scripting/180669-splitting-file-into-several-smaller-files-using-perl.html
(cannot paste link because of lack of points)
I need to do something like this but understand very little of perl.
I also check... (4 Replies)
Discussion started by: mcosta
4 Replies
7. Shell Programming and Scripting
Hi All,
We need to split a large xml into multiple valid xml with same header(2lines) and footer(last line) for N number of letterId.
In the example below we have first 2 lines as header and last line as footer.(They need to be in each split xml file)
Header:
<?xml version="1.0"... (5 Replies)
Discussion started by: vx04
5 Replies
8. Shell Programming and Scripting
Hello Shell Guru's
I have a requirement to split the source xml file into three different text file.
And i need your valuable suggestion to finish this.
Here is my source xml snippet, here i am using only one entry of <jms-system-resource>. There may be multiple entries in the source file.
... (5 Replies)
Discussion started by: Siv51427882
5 Replies
9. UNIX for Beginners Questions & Answers
Hello Gurus,
I have a requirement to split the xml file into different xml files.
Can you please help me with that?
Here is my Source XML file
<jms-system-resource>
<name>PS6SOAJMSModule</name>
<target>soa_server1</target>
<sub-deployment>
... (3 Replies)
Discussion started by: Siv51427882
3 Replies
10. UNIX for Beginners Questions & Answers
I'm searching for the names of a TV show in the XML file I've attached at the end of this post. What I'm trying to do now is pull out/list the data from each of the <SeriesName> tags throughout the document. Currently, I'm only able to get data the first instance of that XML field using the... (9 Replies)
Discussion started by: hungryd
9 Replies
LEARN ABOUT DEBIAN
tthsplit
TTHSPLIT(1) General Commands Manual TTHSPLIT(1)
NAME
tthsplit - TtH gold HTML file splitting utilities
SYNOPSIS
tthprep filename.tex
tthsplit <filename{.html,.xml}
ttmsplit <filename{.html,.xml}
tthrfcat
DESCRIPTION
The script tthprep runs LaTeX to generate the auxiliary files that tth or ttm need to properly link respectively an HTML or XML web docu-
ment.
The programs tth or ttm for converting TeX or LaTeX documents to HTML or XML respectively have a -s option which cause them to generate a
single output file split into sections or chapters with fixed names. The program tthsplit splits the single file into files with fixed
names depending on the LaTeX source. Each document should have its own directory to avoid overwriting each others files.
Program ttmsplit is just a symlink to tthsplit.
For complex documents with multiple bibliographies the tth and ttm programs generate references to a single file refs.html or refs.xml
respectively. The tthrfcat program concatenates multiple bibliography files into such a single file and then deletes the multiple files.
EXAMPLE
$ tthprep sample2e.tex
$ tth -s sample2e.tex
$ tthsplit <sample2e.html
index.html
sec1.html
sec2.html
footnote.html
$
produces the four cross linked HTML files listed from a copy of the example file sample2e.tex distributed with LaTeX 2e and present on
Debian systems with LaTeX installed.
SEE ALSO
tth(1), ttm(1).
The programs are documented fully in
/usr/share/doc/tth-common/html/gold_man.html.
AUTHOR
TtHgold was written by Ian Hutchinson <tth@hutchinson.belmont.ma.us>.
This manual page was written by Ian Maclaine-cross <iml@debian.org>, for the Debian project (and may be used by others).
February 7, 2011 TTHSPLIT(1)