Hi KerveR, thank you for your help.... but...
I tried your code but it is NOT working.
However, when I use -f to test for "one" file in particular, then it works. The script breaks when I try to test more than one file using wildcard "*". I was wondering if we could use -f...
Please anyone help me here.
I have the follwoing command in my scrip:
if test -e c:/dir/file*.dat
then
echo whatever
fi
this is giving me some systax error on test! and I know for sure that I have files in that directory that meet that criteria. I checked it with na 'ls c:/dir/file*.dat'...
Hi all,
Does anyone know how to get all the file in a directory, but not in the subdirectory? I don't want to return any files that are in a subdirectory. Any help is appreciated.
Thank you in advance.
Jeya
thank you all... but could be more descriptive with that find command that you just wrote?
This is what I did though to get the things working...
find . -name "*.exp" -exec newfilename.sh {} \;
newfilename.sh will contain all the commands that I want to execute with each file...
Thanks for your help.
I have another question... DO you know how to pass each file found as a parameter into a variable so that I could use it into the -exec command?
thank you again.
Hi all
Does anyone know how to use multiple -exec command in a find. I need to execute more than one command for each file found in the directory.
eg. find . -name "*.txt" -exec something {}; -exec somethingelse {}; -exec...
Hi All, I need some help with some looping in UNIX script... Here is my problem.
E:/Transfer/LIMS/ folder is populated time to time with some .exp files that have the time stamp attached to their name (oracle export files eg. filename_yymmddhhmmss.exp.)
My script should import the data, for...
Hi all,
Does anyone know how to get rid of the ^H from a file. I get this when I open a certain txt file in Emacs.
Any help is appreciated.
Thank in advance.
jvb
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.