I want to combine 2 conditional statements by using -o in bash, but it won't work.
if ; then
echo "The number needs to be between 0 and $nr"
fi
Each time i execute the file it says:
./selectCitaat: line 10: syntax error near unexpected token `$1' (3 Replies)
Hi I need a script with an if statement that goes.
I need it to search through all files within a directory with the extension .test if it finds the string '71502FSC1206' then do
sed 's/71502FSC1206/\n&/g' > send.test
If it finds the string '715MCH' or '715JAC' then I need it to move the... (1 Reply)
Iam having a script which is used to load users and dumpfile in any given schema.Iam trying to autolog the script and have added two fucntion in it.
function init_stdout_redirect {
OUT_LOG=$1
OUT_PIPE=$(mktemp -u)
# Create the output pipe
mkfifo $OUT_PIPE
# Save stdout and... (15 Replies)
Hey guys,
Currently trying to write a wee script that runs only when logged in as one of two users. The rest of the script is working fine, but no matter what user I try to run it as, it always fails! This is the puzzling part:if ]; then
echo "Run script as admin "
exit 1
else... (6 Replies)
Hi,
Here is my code as below:
test.ksh:
=======
#!/bin/ksh
option="${1}"
while
do
case $1 in
-f) FILE="${2}"
echo "File name is $FILE"
;;
-d) DIR="${2}"
echo "Dir name is $DIR"
;;
-*)
echo "`basename ${0}`:usage: | " (5 Replies)
I am getting the following error when I am running a script in ksh when trying to execute an if statement comparing two numerical values
tstmb.sh: 1.5321e+08: 0403-057 Syntax error
Below is my code snippet.
#!/bin/ksh
set -x
TODAY=$(date +%y%m%d)
for file in $(ls -rt *.log | tail... (11 Replies)
The code at the bottom is a simplified example of what we have.
If I use the following:
&& echo "echo failed"
$? returns 1
When I use
if ; then echo "echo failed" ; fi
$? returns 0
Does anyone know what's wrong with this?
Using AIX 6.1 and KSH
for NUM in 1 2 3
do
... (5 Replies)
I'm looking for some help in figuring why my little bit of code will not process any entries other then the first one in my list.
while read line ;do
hostname=${line//\"}
a=`ssh user@$hostname uptime;echo $?`
if ];then
dt=`date`
touch... (6 Replies)
Hi Gurus,
I have the below BASH code which does not works for upper case alphabets except Z (upper case Z).
What may be the reason. Also escape sequences like \n, \t, \b, \033(1m \033(0m (For bold letter) are not working.
case $var in
)
echo "Lower case alphabet"
;;
... (7 Replies)
Hi all,
i need a equivalent for the statement i run in bash, so it would also run in other shells. Specially i need it for ksh to run on AIX.
Here the statements:
exec > >(tee -a $log)
exec 2> >(tee -a $log >&2)
Thanks. (5 Replies)
Discussion started by: Kosak
5 Replies
LEARN ABOUT DEBIAN
allversusall
ALLVERSUSALL(1e) EMBOSS Manual for Debian ALLVERSUSALL(1e)NAME
allversusall - Sequence similarity data from all-versus-all comparison.
SYNOPSIS
allversusall -seqinpath dirlist [-matrix matrixf] [-gapopen float] [-gapextend float] -datoutdir outdir -logfile outfile
allversusall -help
DESCRIPTION
allversusall is a command line program from EMBOSS ("the European Molecular Biology Open Software Suite"). It is part of the
"Utils:Database creation" command group(s).
OPTIONS
Input section
-seqinpath dirlist
Default value: ./
-matrix matrixf
This option specifies the residue substitution matrix that is used for sequence comparison. Default value: EBLOSUM62
Required section
Additional section
-gapopen float
This option specifies the gap insertion penalty. The gap insertion penalty is the score taken away when a gap is created. The best
value depends on the choice of comparison matrix. The default value assumes you are using the EBLOSUM62 matrix for protein sequences,
and the EDNAFULL matrix for nucleotide sequences. Default value: 10
-gapextend float
This option specifies the gap extension penalty. The gap extension, penalty is added to the standard gap penalty for each base or
residue in the gap. This is how long gaps are penalized. Usually you will expect a few long gaps rather than many short gaps, so the
gap extension penalty should be lower than the gap penalty. An exception is where one or both sequences are single reads with possible
sequencing errors in which case you would expect many single base gaps. You can get this result by setting the gap open penalty to zero
(or very low) and using the gap extension penalty to control gap scoring. Default value: 0.5
Output section
-datoutdir outdir
This option specifies the location of sequence similarity data files (output). Default value: ./
-logfile outfile
This option specifies the name of ALLVERSUSALL log file (output). The log file contains messages about any errors arising while
ALLVERSUSALL ran. Default value: allversusall.log
BUGS
Bugs can be reported to the Debian Bug Tracking system (http://bugs.debian.org/emboss), or directly to the EMBOSS developers
(http://sourceforge.net/tracker/?group_id=93650&atid=605031).
SEE ALSO
allversusall is fully documented via the tfm(1) system.
AUTHOR
Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Wrote the script used to autogenerate this manual page.
COPYRIGHT
This manual page was autogenerated from an Ajax Control Definition of the EMBOSS package. It can be redistributed under the same terms as
EMBOSS itself.
DOMALIGN 0.1.0+20100721 08/11/2010 ALLVERSUSALL(1e)