Hello All,
I have a script that will email out if the email address is specified as parameter 1.
I am using ksh, and then tried the following :
email=$1
Following did not work, I am getting error
test -z $email
test ${email:=" ") -eq " "
test -n $email
test ${?email}
What... (4 Replies)
Hi
I am writing a bash script and would like to check is a variable contains a . or not
ex.
a=102 output ok
a=1.02 output not ok
Many thanks, (3 Replies)
Hi all,
to check that a variable is not empty, I usually do:
if ; then...
or
if ; then...
what if I have a serie of variables and want to do the same test on all of them. How to do this in a single if statement?
thank you (1 Reply)
hi to all,
i want to check the value of a variable that it contains characters.
for example i try the following:
if then .........
i just want to check that in the specific line that is a variable called "passline" has the entry "password". But it can contain also other characters in the... (4 Replies)
I have seen many posts for this sort of problem but I just did not know how to use it for my issue. A number is assigned to a variable and I wanted to check if it is a zero or non zero.
Example of my numbers are below:
000000000000000000000000000000000000000000000000... (8 Replies)
I have a script /root/asas with following contents.
#!/bin/bash
ha=`cat /etc/passwd | grep sandra`
if ; then
echo "Sandra is in /etc/passwd"
echo "variable ha is $ha"
else
echo "Sandra is NOT in /etc/passwd"
echo "variable ha is $ha"
fi
What... (3 Replies)
hi,
i want to check whether a a variable contains some value or is empty in a shell script. so if the variable contains some value i want to do some job and if the variable doesnt contain any value then i need to skip that job.
here is a sample script
read_filenames.sh contains
... (5 Replies)
Hi people,
I would like to start a review of my config variable to check whether they have been changed and if not then there is only an echo. If they have been changed to my other commands are executed.
I hope you can help me.
with best regards
JPad
edit:
here my code
if ;... (8 Replies)
Discussion started by: JPad
8 Replies
LEARN ABOUT DEBIAN
naturaldocs
NATURALDOCS(1) General Commands Manual NATURALDOCS(1)NAME
NaturalDocs - an extensible, multi-language documentation generator
SYNOPSIS
naturaldocs -i <input (source) directory> [-i <input (source) directory> ...] -o <output format> <output directory> [-o <output format>
<output directory> ...] -p <project directory> [options]
DESCRIPTION
This manual page documents briefly the .B naturaldocs command. Note that naturaldocs is a wrapper script that on Debian invokes the real
NaturalDocs perl program. So, the real, original name of the program is NaturalDocs but on Debian systems you invoke it as naturaldocs.
Natural Docs is is an open-source, extensible, multi-language documentation generator. You document your code in a natural syntax that
reads like plain English. Natural Docs then scans your code and builds high-quality HTML documentation from it.
OPTIONS
A summary of options, extracted from the help printed by the -h switch is included below. For a complete description of how NaturalDocs
works, see the text files in the /usr/share/doc/naturaldocs directory.
Required parameters:
-i, --input, --source DIR
Specifies an input (source) directory. Required.
Can be specified multiple times.
-o, --output FMT DIR
Specifies an output format and directory. Required.
Can be specified multiple times, but only once per directory. Possible output formats are HTML and FramedHTML.
-p, --project DIR
Specifies the project directory. Required.
There needs to be a unique project directory for every source directory.
Optional parameters:
-s, --style STYLE [STYLE ...]
Specifies the CSS style when building HTML output. If multiple styles are specified, they will all be included in the order given.
-img, --image DIR
Specifies an image directory. Can be specified multiple times. Start with * to specify a relative directory, as in -img */images.
-do, --documented-only
Specifies only documented code aspects should be included in the output.
-t, --tab-length LEN
Specifies the number of spaces tabs should be expanded to. This only needs to be set if you use tabs in example code and text dia-
grams. Defaults to 4.
-xi, --exclude-input, --exclude-source
Excludes an input (source) directory from the documentation. Automatically done for the project and output directories. Can be spec-
ified multiple times.
-nag, --no-auto-group
Turns off auto-grouping completely.
-oft, --only-file-titles
Source files will only use the file name as the title.
-r, --rebuild
Rebuilds all output and data files from scratch. Does not affect the menu file.
-ro, --rebuild-output
Rebuilds all output files from scratch.
-q, --quiet
Suppresses all non-error output.
-?, -h, --help
Displays syntax reference.
AUTHOR
NaturalDocs was written by Greg Valure <gregvalure@naturaldocs.org>.
This manual page was written by Federico Di Gregorio <fog@debian.org>, for the Debian project (but may be used by others).
May 2007 NATURALDOCS(1)