02-03-2007
10 More Discussions You Might Find Interesting
1. Programming
Hi there,
Here is the prototype for the myConcat function which takes a variable number of arguments. I am to create a file that contains a definition of the myConcat function.
char* myConcat(int n, ... )
When the function is called, the first argument should be an integer > 0. ... (1 Reply)
Discussion started by: Magdalena
1 Replies
2. Shell Programming and Scripting
Hallo everyone,
This is my problem below:
/home/cerebrus/pax=>vat class2.sh
ksh: vat: not found
/home/cerebrus/pax=>cat class2.sh
#!/bin/ksh
set -x
bdf|grep appsdev|awk '{ print $5 }'> class3
dd={cat class3}
echo $dd
/home/cerebrus/pax=>
/home/cerebrus/pax=>./class2.sh
+ bdf
+... (8 Replies)
Discussion started by: kekanap
8 Replies
3. UNIX for Advanced & Expert Users
I need to pass a parameter to a function in a script. My parameter is a string. When I display the parameter within my function, I only get the first word from string I pass in.
How can I make the function receive the whole string (and not terminate at the first space it encounters)?.
part of... (2 Replies)
Discussion started by: fastgoon
2 Replies
4. Programming
Hi,
How to pass parameter to makefile?
Please let me know if any one knows and also please put an example of makefile with this feature.
thanks,
Manju. (3 Replies)
Discussion started by: manju_p
3 Replies
5. Shell Programming and Scripting
I have written a Shell Script Program which accepts 3 parameters as shown below:
./calc 20 + 2
in the above line ./calc is the Shell Script itself with 3 parameters, namely:
20
+
and 2.
Well, now let's look inside the Script:
result=$1$2$3
echo $result
The output will be as... (8 Replies)
Discussion started by: indiansoil
8 Replies
6. Shell Programming and Scripting
Hi All,
I am trying to pass a parameter to AWK on my KSH shell prompt as below.
var1=2
echo $var1
awk -v var2=${var1} '{print var2}' testfile.txt
I am passing the input file (testfile) to awk to get some o/p. It is having 10 records.
When I run AWK, it is throwing the following errors... (1 Reply)
Discussion started by: Raamc
1 Replies
7. Programming
I am surprised by GCC (this is ver. 4.2.4, Ubuntu 32 bit Intel) when a function declares a float parameter and it's prototype is missing, the parameters are messed up.
Please see my code below:
~/test$ cat x1.c
#include <stdio.h>
#include <stdlib.h>
set_p(int p1, float p2, int p3, int p4)... (7 Replies)
Discussion started by: migurus
7 Replies
8. Shell Programming and Scripting
i am passing input parameter 'one_two' to the script , the script output should display the result as below
one_1two
one_2two
one_3two
if
then
echo " Usage : <$0> <DATABASE> "
exit 0
else
for DB in 1 2 3
do
DBname=`$DATABASE | awk -F "_" '{print $1_${DB}_$2}`
done
fi (5 Replies)
Discussion started by: only4satish
5 Replies
9. Shell Programming and Scripting
Hi ,
How can I pass option and parameter together?
I want like
script.sh par1 par2 -s option1
And when I am doing
echo $1
echo $2
#opt is the variable where we are storing the option value through getops
echo $opt
output should be (4 Replies)
Discussion started by: Anupam_Halder
4 Replies
10. Shell Programming and Scripting
Hi,
I've written a script where eleven parameter to be passed from command line
which is inserting into an oracle table,
it is working but the tenth and 11th parameter are not accepting as given
it is referring to 1st parameter.
HERE IS THE SCRIPT
#!/bin/ksh
#set -o
echo $*... (4 Replies)
Discussion started by: sankar
4 Replies
LEARN ABOUT DEBIAN
simplyhtml
SIMPLYHTML(1) General Commands Manual SIMPLYHTML(1)
NAME
simplyhtml -- A Java editor based on HTML and CSS.
SYNOPSIS
simplyhtml [no_options]
DESCRIPTION
This manual page documents briefly the simplyhtml command.
This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has online
documentation (see Help menu in SimplyHTML).
Project Description
With project SimplyHTML an application is built for working with text documents. Text documents are stored in HTML and CSS format, but the
application is meant as a word processor rather than a code editor or web site builder.
Open to the maximum
SimplyHTML is built with the aim to document as much of its functionality and usage as possible. The application is written in Java and
distributed with full source codes.
By using Java, HTML, CSS and PDF all parts of the project are 100% platform independent and can be used on almost any machine.
Extensive documentation
Source codes are commented in Javadoc format and additional inline comments. The sources are created with good legibility and structure in
mind.
In addition, an extensive tutorial is delivered covering both usage of the application and its internals. The tutorial is available in
JavaHelp format and can be used as online help out of SimplyHTML. Or it can be read with a plain web browser. A PDF version of the tutorial
is avalable too.
Why another HTML editor?
SimplyHTML is not an HTML editor in first place. It is a text processing application being based on HTML and CSS files.
Although it has a simple HTML editor built in as well, the application focuses on text processing rather than web page creation.
SimplyHTML tries to distinguish from comparable applications by combining simplicity, ease of use and transparency for both users and
developers.
OPTIONS
This program does not have any option. Just start it!
ENVIRONMENT VARIABLES
DEBUG If this environment variable is set, SimplyHTML gives more information on how it finds its different elements, as well as some
other information.
JAVACMD Default value for the java virtual machine (the java command).
JAVA_BINDIR
If $JAVACMD is not set, the java virtual machine is searched under $JAVA_BINDIR/java.
JAVA_HOME If $JAVACMD and $JAVA_BINDIR are not set, the java virtual machine is searched under $JAVA_HOME/bin/java.
PATH If all $JAVA... environment variables fail, the java virtual machine command (java) is searched in the $PATH (with which).
CLASSPATH ADD_JARS
The $CLASSPATH variable also lets one specify additional jars, which is good, if you want to add a new Look&Feel jar (the motif
one is so ugly...). Alternatively, the content of $ADD_JARS will be prepended to $CLASSPATH.
FILES
/usr/bin/java
If all searches through environment variables fail, the java virtual machine is expected to be /usr/bin/java; if not, simplyhtml
exits with an error.
SEE ALSO
The online documentation under http://simplyhtml.sf.net/, especially the Linux related one under the Wiki page link http://simply-
html.sourceforge.net/wiki/index.php/SimplyHTML_on_Linux.
AUTHOR
This manual page was written by Eric Lavarde deb@zorglub.s.bawue.de for the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version pub-
lished by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
SIMPLYHTML(1)