Hi Friends ,
Please guide me with the code to extract multiple files from one file .
The File Looks like ( Suppose a file has 2 tables list ,column length may vary )
The Output looks like : the forth field of header is the file name too
Last edited by Scott; 08-04-2014 at 02:20 AM..
Reason: Code tags
I have a case where, I need to look into a file.
Go to each line of the file, find the length of the line, if the length of the line is more than 75 chars, I need to split the line into multiple lines of 75chars max. If the length of the line is less than 75, we need not do anything.
So at the... (4 Replies)
I have a file that logs multiple sessions. What I would like to do is split this file inclusive of the lines that include "starting session" and "shutting down" and ignore the data before and after the beginning of the first session and the end of the last session. The output files can be called... (2 Replies)
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)
Hi all,
I am new to scripting and I have a requirement
we have source file as
HEADER 01.10.2010 14:32:37 NAYA
TA0022
TA0000
20000001;20060612;99991231;K4;02;3
20000008;20080624;99991231;K4;02;3
20000026;19840724;99991231;KK;01;3
20000027;19840724;99991231;KK;01;3... (6 Replies)
I have a file in unix with sample data as follows :
--------------------------------------------------------------
--------------------------------------------------------------
{30001002|XXparameter|Layout|$
I want this file to be splitted into different files and corresponding to the sample... (54 Replies)
Hi,
I have a space delimited text file with multiple columns 102 columns. I want to break it up into 100 files labelled 1.txt through 100.txt (n.txt). Each text file will contain the first two columns and in addition the nth column (that corresponds to n.txt). The third file will contain the... (1 Reply)
hdr=$(cut -c1 $path$file|head -1)#extract header”H”
trl=$(cut -c|path$file|tail -1)#extract trailer “T”
SplitFile=$(cut -c 50-250 $path 1$newfile |sed'$/ *$//' head -1')# to trim white space and extract table name
If; then # start loop if it is a header
While read I #read file
Do... (4 Replies)
Hi,
I'm having a xml file with multiple xml header. so i want to split the file into multiple files.
Sample.xml consists multiple headers so how can we split these multiple headers into multiple files in unix.
eg :
<?xml version="1.0" encoding="UTF-8"?>
<ml:individual... (3 Replies)
Hi all,
Newbie here. First of all, sorry if I made any mistakes while posting this question in terms of rules. Correct me if I am wrong. :b:
I have a .dat file whose name is in the format of 20170311_abc_xyz.dat. The file consists of records whose first column consists of multiple dates in... (2 Replies)
Hello I have a file of following format
HDR 1234 abc qwerty
abc def ghi jkl
HDR 4567 xyz qwerty
abc def ghi jkl
HDR 890 mno qwerty
abc def ghi jkl
HDR 1234 abc qwerty
abc def ghi jkl
HDR 1234 abc qwerty
abc def ghi jkl
-Need to split this into multiple files based on tag... (8 Replies)
Discussion started by: wincrazy
8 Replies
LEARN ABOUT DEBIAN
latex::table::themes::classic
LaTeX::Table::Themes::Classic(3pm) User Contributed Perl Documentation LaTeX::Table::Themes::Classic(3pm)NAME
LaTeX::Table::Themes::Classic - Classic LaTeX table themes.
PROVIDES
This module provides following themes:
plain
Animal Description Price
Gnu stuffed 92.59
Emu stuffed 33.33
Miami
Animal Description Price
----------------------------------
Gnu stuffed 92.59
Emu stuffed 33.33
Berlin
+--------+-------------+--------+
| Animal | Description | Price |
+========+=============+========+
| Gnu | stuffed | 92.59 |
| Emu | stuffed | 33.33 |
+--------+-------------+--------+
Dresden
+--------++-------------+--------+
| Animal || Description | Price |
+========++=============+========+
| Gnu || stuffed | 92.59 |
| Emu || stuffed | 33.33 |
+--------++-------------+--------+
Houston
+--------++-------------+--------+
| Animal || Description | Price |
+========++=============+========+
| Gnu || stuffed | 92.59 |
+--------++-------------+--------+
| Emu || stuffed | 33.33 |
+--------++-------------+--------+
Except for "plain", headers are printed in bold font.
REQUIRES
The themes defined in this module require no additional LaTeX packages.
NOTES
These are the classic themes you know from the famous books and tutorials. However, they have flaws. Read the "booktabs" documentation for
a discussion of this.
The "plain" theme might be useful in combination with the ltpretty script.
SEE ALSO
LaTeX::Table, LaTeX::Table::Themes::ThemeI
LICENSE AND COPYRIGHT
Copyright (c) 2006-2010 "<limaone@cpan.org>"
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
perl v5.10.1 2010-10-27 LaTeX::Table::Themes::Classic(3pm)