This way, if *.LOG does not expand (no file matches), then testing if '*.LOG' exists with -e will fail and your script will exit successfully and crontab should not email you
say i would like to check if the file is existed before i use rm command. How can i do it?
i know if i can use find, but i would like to have a good interface (in a shell script)
thks (3 Replies)
Hello,
I want to check if some word exist or not on some file
By Example :
word is : nixcraft
file called : /root/shell.txt
and i want to check if nixcraft word exist on /root/shell.txt file with if statement or another tool
Any Ideas (5 Replies)
Hi
Does anybody know how I can check if a file exists
i.e. see bellow, this doesn't work by the way and if tried countless variations on this
file1=$one/file111.txt
if
then
echo "Present"
else
echo "Not present"
fi
result :
Not present
(file is already present, eventhough its... (3 Replies)
I have created two scripts, one with hardcoded and another one with extract from file instead of hardcoded,
script:1
--------
#!/bin/ksh
filename="$one/file1.dat"
if
then
echo "$filename has arrived." >> $logfile
else
echo "$filename has NOT yet arrived." >> $logfile
fi
:>
Result:... (4 Replies)
Hi,
I am trying to create a bash script which will check if file exist then remove that file else do nothing. I have to do same process for three files in same script. I have written code for one file and trying to run it.
if
then
rm -r /user1/abc/File1
fi
When I run this code it... (1 Reply)
Hi,
I created following script to check if file exist:
#!/bin/bash
SrcDir=$1
SrcFileName=$2
SrcTimePeriod=$3
if ;then
echo 1
else
echo 0
fi
I ran it like: /apps/Scripts/FileExist.sh /apps/Inbox file1 2nd_period_2010
Even file exist at that location, my above command is... (4 Replies)
HI folks,
can any one tell me how to check whether the file is existed in a directory or not .
let me tell you my requirement : if the file is existed i should display a one message or else i have to send a mail ..
i have the mail logic .. but I'm failed to check file existence .. please... (5 Replies)
Hi,
I've a situation where i need to check for the file existence and create a zero byte file based on the parameter,in some cases i need to touch and in some case i dont need to touch with zero byte file please help me on parameterizing this touch command??
Regards.
San (2 Replies)
Discussion started by: sandeep karna
2 Replies
LEARN ABOUT MINIX
log
LOG(1) cao-vlsi reference manual LOG(1)NAME
log - logical representations for boolean functions and utilities.
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
DESCRIPTION
log is a set of structures and functions that permits to manipulate several representations of boolean functions. Several programs and
libraries of the cao-vlsi cad tools rest on the log package. Three different kind of functions are available for:
Hash table management
Prefixed representation for boolean functions
Ordered binary decision diagrams representation
EXAMPLE
Let's suppose that actual mbk version is 'nnn'. In order to use log, libMutnnn.a library must be called.
makefile:
HEADER = -I/labo/include
LIB = -L/labo/lib -lMut -ltsh -labl -lbdd
Each library can be called separatly. The "log.h" header file must be inserted in the files that use the functions or the structures
defined in a library.
SEE ALSO mbk(1), beh(1),
AUTHOR
L. BURGUN salle 30 T. 55-65 Universite P&M Curie - 4 pl. Jussieu - FRANCE
THANKS
Thanks to P. REMY, F. PETROT, P. ALLEGRE and N. DICTUS.
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM /LIP6 October 1, 1997 LOG(1)