Try this
Here the files file will contain your input data.
i.e.
20081213aaaaaaaaa
20081213bbbbbbbbb
20081220ccccccccc
20081220ddddddddd
20081220eeeeeeeee
20081227ffffffffffffff
So now your requirement will be achieved
Last edited by thillai_selvan; 03-09-2010 at 12:57 AM..
I have a file given below. I want to split the file where ever I came across
***(instead you can put ### symbols in the file) . Also I need to name the file by extracting the report name from the first line which is in bold(eg:RPT507A) concatinated with DD(day on which the file runs). Can someone... (1 Reply)
I need to split a file based on certain context inside the file. Is there a unix command that can do this? I have looked into split and csplit but it does not seem like those would work because I need to split this file based on certain text. The file has multiple records and I need to split this... (1 Reply)
Hello
I have a requirement where i need to split the Input fixed width file which contains multiple invoices into multiple files with 2 invoices per file.
Each invoice can be identified by its first line's second character which is "H" and sixth character is " " space and the invoice would... (10 Replies)
I have file as shown below. Would like to split the file based on the context of data.
Like, split the content between "---- XXX Info ----" and "
---- YYY Info ----" to a file.
When I try using below command, 2nd file contains all the info starting after first "---- YYYY Info ----" instance.... (8 Replies)
Hi all,
I have a file (say file.txt) which contains comma-separated rows. Each row has seven columns. Only column 4 or 5 (not both) can have empty values like "" in each line.
Sample lines
So, now i want all the rows that have column 4 as "" go in file1.txt and all the rows that have column... (8 Replies)
Hello friends,
Is there any way to split file from n to n+6 into 1 file and (n+7) to (n+16) into other file etc.
f.e I have source pipe delimated file with 20 lines and i need to split 1-6 in file1 and 7-16 in file2 and 17-20 in file 3
I need to split into fixed number of file like 4 files... (2 Replies)
Hi I have a file with over a million lines (rows) and I want to split everything from 500,000 to a million into another file (to make the file smaller). Is there a simple command for this?
Thank you
Phil (4 Replies)
Hi All,
I am having a problem. I tried to extract the chunk of data and tried to fix I am not able to. Any help please
Basically I need to remove the for , values after K,
this is how it is now
A,,
B,
C,C,
D,D,
12/04/10,12/04/10,
K,1,1,1,1,0,3.0,
K,1,1,1,2,0,4.0,... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies
LEARN ABOUT DEBIAN
java2html
JAVA2HTML(1) General Commands Manual JAVA2HTML(1)NAME
java2html - generates highlighted html-files from Java or C++ source
SYNOPSIS
java2html [options] [filename...]
DESCRIPTION
This manual page documents how to use java2html. If no arguments are given on the command line of java2html, it reads from stdin and
writes to stdout.
If invoked with filenames as arguments java2html will write it's output into new files. Names of output files are generated by appending
".html" to the corresponding input filename.
Installing as a CGI program
java2html can be installed as a CGI program and convert source files on the fly. In order to set this up for apache the webmaster has to
add the two lines
AddType text/x-java .java
Action text/x-java /cgi-bin/java2html
to the webserver configuration file. java2html depends on the webserver properly setting environment variable PATH_TRANSLATED to the path-
name of the source file. If java2html has been compiled with option -DCOMPRESSION=1 then it will invoke gzip to compress the generated
HTML before sending it to the requesting browser. Of course java2html takes care to check if the browser accepts gzip encoding.
OPTIONS
-- Interpret all following arguments on the command line as filenames. This is useful, if you want to convert files beginning with a
'-'.
-b filename
Insert the file 'filename' after converted data and before HTML footer. See also the -s option.
-c Turns off CGI-script detection and HTTP header generation. This is needed to use java2html as a subcommand in another CGI script.
-h filename
Insert the file 'filename' after the HTML headers and before the converted data. See also the -s option.
-i Generate an index only. This will generate a list of references (HREF's) to the labels that java2html creates for your source file.
The references are created as list items (<li>) in an HTML list. Each line has the form
<li><a href="#name">prototype()</a></li>
so they can be used directly as an index list, or further parsed by another script.
If you want the index at the top of the source file, you will need a wrapper script like this one:
#! /bin/sh
echo "Content-type: text/html"
echo ""
echo "<html>"
echo "<head><title>$PATH_TRANSLATED</title>"
echo "<meta name="generator""
echo "content="`java2html -V`">"
echo "</head>"
echo "<body>"
echo "<h1>Source of $PATH_TRANSLATED</h1>"
echo "<ul>Structures and functions"
cat $PATH_TRANSLATED | java2html -isc
echo "</ul>"
echo "<hr></hr>"
cat $PATH_TRANSLATED | java2html -sc
echo "</body></html>"
exit
-n Number lines and label them with 'line' followed by the line number. Empty lines get no label, but the linecounter will count them
nevertheless. With this feature you can refer to special lines of code from other parts of the generated file or from external files
with a line like this:
<A HREF="foo.java.html#line301">Go to line 301</A>
-s With this option you can suppress the generation of HTML headers. This is especially useful together with options -b file and -h
file.
-t title
Set the title to 'title'. The default is the filename you converted or "stdin" if reading from stdin. This option is only used if -s
is not set.
-u Print usage information.
-w width
sets the WIDTH attribute for HTML tag <PRE>. If this option is not used a default of 80 is assumed. (Currently most browsers are
ignoring this attribute).
-V reports the version number of java2html.
EXIT STATUS
java2html returns 0 on success, 1 if input files are not existing/readable, 2 if output files are not creatable/writable, 3 if invoked with
illegal options and 4 if gzip cannot be invoked.
AUTHORS
Florian Schintke <schintke@cs.tu-berlin.de>
Martin Kammerhofer <mkamm@gmx.net> wrote the CGI feature.
Rob Ewan <rob@ewan.com> wrote the indexing feature.
SEE ALSO c2html(1), pas2html(1), perl2html(1).
JAVA2HTML(1)