I'd like to make a script that I can execute every time I sign on to my linux box that keeps track of the time and allows to me to add a remark to a file. So basically once I log in, I run the script, and it outputs the date and time to a text file (log.txt). But that isn't my problem.
I need... (1 Reply)
Hi,
I have a requirement. I have an application which can take a file as inputs. Now the file can contain any number of lines. The tool has to pick up the first uncommented line and begin processing it.
For example the file could be like this:
#MANI123|MANI1234
#MANI234|MANI247... (4 Replies)
am relatively new to Shell scripting.
I have written a script for parsing a big file. The logic is:
Apart from lot of other useless stuffs, there are many occurances of <abc> and corresponding </abc> tags. (All of them are properly closed)
My requirement is to find a particular tag (say... (3 Replies)
I have a CSV file which contains number series as one of the fields. Some of the records of the field look like :
079661/3
I have to convert the above series as
079661
079662
079663
and store it as 3 different records.
Looking for help on how to achieve this. Am a newbie at Shell... (10 Replies)
Hello Friends,
i need help to remove "#" sign from a file. I want to remove the "#" marks just in the area mentioned in red. I am not so good in awk, this help would be deeply appreciated.
thanks
Ado
trap = {
# {
# trap-community = SNMP-trap
# hosts = hubble,... (14 Replies)
Hey guys,
I have this file generated by me... i want to create some HTML output from it.
The problem is that i am really confused about how do I go about reading the file.
The file is in the following format:
TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
Hi folks,
Need some help with XML to text file parsing , the following is the content of the XML File.
<xn:SubNetwork id="SNJNPRZDCR0R03">
<xn:MeContext id="PRSJU0005">
<xn:VsDataContainer id="PRSJU0005">
<xn:attributes>
... (6 Replies)
Hi,
I want to parse an XML File using Shell Script preferably by using awk command,
I/P file is :
<gn:ExternalGsmCell id="016P3A">
<gn:attributes>
<gn:mnc>410</gn:mnc>
<gn:mcc>310</gn:mcc>
<gn:lac>8016</gn:lac>
... (2 Replies)
Hi,
I have shell script which will read single edi document and break data between ST & SE to separate files.Below example should create 3 separate files. I have written script with the below command and it is working fine for smaller files.
awk -F\| -vt=`date +%m%d%y%H%M%S%s` \
... (2 Replies)
Hello,
Below script works fine when I manually enter required information for each file. When it comes to shell in auto mode, it gives various errors.
I am under ubuntu 14.04 / trusty.
manual_run.sh:
#!/bin/bash
/usr/bin/ffmpeg -start_at_zero -copyts -i nicki.mp4 -c:v mpeg2video \
-b:v 500k... (3 Replies)
Discussion started by: baris35
3 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)