Use a for loop instead, for every .in file check if .out exist or not:-
Code:
for in_file in *.in
do
out_file=$( echo $in_file | sed 's/\.in/\.out/g' ) # replace .in with .out
if [ ! -f ${out_file} ] # check if corresponding .out file exists.
then
echo ${out_file} is missing.
fi
done
Dear All,
I'm trying to write a shell script that continously checks a certain folder. When a file is placed in the directory securely copies the file to another server.
I've got the secure copying working, but I don't know how to contiously check a directory for a new file and then use that... (3 Replies)
I have a folder with lots of file. e.g. a.txt, b.txt, c.txt.... I want to put these files from the source directory and place them in a destination directory in a specific order, such as /destination/a/a.txt, /destination/b/b.txt, /destination/c/c.txt, ......
Please help. Thx :confused: (3 Replies)
. ./testFile.sh
url=http://ichart.finance.yahoo.com/table.csv?s= suf=&d=5&e=9&f=2009&g=d&a=1&b=4&c=1999&ignore=.csv
wget $url$s1$suf;
sleep 10;
cat header.txt > $s1.txt;
chmod 777 $s1.txt;
sed '1d' table.csv?s\=$s1 >> $s1.txt;
rm -Rf table*
Very new at shell scripting as you can see... (3 Replies)
I have been following a tutorial on bash which has proven to be very helpful. However, i am stuck with a command not found issue when asking for a y/n response from the user. Below is the part of code I believe is giving me grief... I have been trying to work through this for 3 hours now.... Please... (5 Replies)
Hello,
I'm new to Sheel script and I need your help for a script I need to develop (for me).
Indead, I have a software which log all entry from internet and save it in text file.
But, the log is practically unreadable because every 256 characters jump to a new line (even if the message is... (5 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
"Create a shell script that changes the selected word to another word in all files from selected archive. The... (1 Reply)
So guys basically I was really sick and couldn't attend the labs and lectures and I went to my lecture hoping he would say ok I will help you from the start but he just said google it. So If it's possible to make the assignment and explain more in detail why is that would be really helpfull.
I can... (1 Reply)
Hi,
can someone explain how this aliases work:
alias m 'if ( \!:$ =~ *gz) set status = 1 && most \!:$ || gzcat \!:1 | most '
I mean, I know what it does, but I don't know how
- what is \!:$ and \!:1
- how do it used the && and ||
- what it does with status variable?
thanks (3 Replies)
Hi everyone, first time visitor to these forums here.
Keeping a long story short I've been attempting to learn how to code in bash. I have VERY little previous experience with coding languages besides simply copying and pasting batch scripts for Windows. So, with that in mind I've followed a... (4 Replies)
Discussion started by: Meta
4 Replies
LEARN ABOUT DEBIAN
fastaoverlap
EXONERATE(1) General Commands Manual EXONERATE(1)NAME
exonerate - suite for investigating DNA and RNA sequence similarities
SYNOPSIS
exonerate-client [--help]
exonerate-server [--help]
fasta2esd [--help]
fastaannotatecdna [--help]
fastachecksum [--help]
fastaclean [--help]
fastaclip [--help]
fastacomposition [--help]
fastadiff [--help]
fastaexplode [--help]
fastafetch [--help]
fastahardmask [--help]
fastaindex [--help]
fastalength [--help]
fastanrdb [--help]
fastaoverlap [--help]
fastareformat [--help]
fastaremove [--help]
fastarevcomp [--help]
fastasoftmask [--help]
fastasort [--help]
fastasplit [--help]
fastasubseq [--help]
fastatranslate [--help]
fastavalidcds [--help]
DESCRIPTION
These programs are not described by the upstream author, however, some information is available via the --help and -h arguments for all
these programs. Whoever is using any of these programs in routine, is requested to provide a seed of a respective man page to the upstream
author.
OPTIONS -h, --help Show summary of options.
-v, --version
Show version of program.
SEE ALSO
http://www.ebi.ac.uk/~guy/exonerate/
The author of this package provides a beginner ( http://www.ebi.ac.uk/~guy/exonerate/beginner.html ) and and avanced
http://www.ebi.ac.uk/~guy/exonerate/advanced.html ) tutorial on his web pages.
AUTHOR
exonerate was written by Guy Slater <guy@ebi.ac.uk>.
This manual page was written by Steffen Moeller for the Debian project (but may be used by others).
30 Jun 2007 EXONERATE(1)