01-23-2006
you are using
DIR1="/home/pavi/cvs/20071426/TEMP"
echo " DIR1 is : " $DESTDIR1
echo "Directory exits"
rm -rf $DIR1
echo "dir1 deleted "
just look at DIR1 this is ="/home/pavi/cvs/20071426/TEMP"
This is the reason it is only deleting TEMP
set DIR1="/home/pavi/cvs/"
and then do
rm -rf $DIR1
rajesh
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I have Solaris 8 in several Ultras and they share some directories between each others using nfs.
(you know, one shares the other mounts the remote directory into a local...).
The problem is that one guy (me) deleted a shared directory and now the computer that was mounting it remotely is... (3 Replies)
Discussion started by: piltrafa
3 Replies
2. UNIX for Dummies Questions & Answers
SCO 5.06
Someone broke into my NT box (grrr) and somehow, they created a bunch of directories w/ subdirectories that appear un-named.
I mounted the drive on my unix box using NFS and when I listed the directory in unix, Im getting a bunch of ascii charachters.
drwxr-xr-x 8 root group... (4 Replies)
Discussion started by: gseyforth
4 Replies
3. UNIX for Dummies Questions & Answers
Say I have a directory call test, and several directories nested in it, and several directories nested in them. And I want to remove all directories within "test" and its subdirectories that have the name "cvs", how can I do this?
I tried rm -r cvs, but that only removed the top level direcotry... (4 Replies)
Discussion started by: mikeshank
4 Replies
4. UNIX for Dummies Questions & Answers
I searched the forum, but I don't think I was able to find exactly what I'm looking for.
Is there a command in shell where I can delete a particular string from every file it occurs in (where the file is named the same, but sits in different directories)?
Example: Within the directory I am... (5 Replies)
Discussion started by: halo969
5 Replies
5. UNIX for Dummies Questions & Answers
Hi there,
I have a some directories containing web files that are old, and I need to remove them. I know that there might be sym links and hyperlinks pointing to these old directories. If that's the case, then I'll have to fix the links before deleting these old directories to avoid broken... (4 Replies)
Discussion started by: yvochan
4 Replies
6. Filesystems, Disks and Memory
I have a need to remove a bunch of old user home directories from my
OS X server. Using BASH and ls, I've been able to redirect the directory structure to a file with 'ls -l >userslist'. I've then manually sifted through the list for directories whos owner doesn't match the a given directory name... (1 Reply)
Discussion started by: amacgeek
1 Replies
7. UNIX for Dummies Questions & Answers
how can we delete directories older than 6 months (9 Replies)
Discussion started by: dnat
9 Replies
8. Shell Programming and Scripting
Hello, I'm submitting this thread, because I was looking a way to delete empty directories using find and I found a thread from 2007 that helped me. I have worked from that threat, but I found that the command sent would analyze original directory and may delete it to. I have come up with expanded... (3 Replies)
Discussion started by: lramirev
3 Replies
9. Shell Programming and Scripting
Hello out there,
I want to setup a crontab feature to remove temporary pdf files from sub directories that are older than 30 days. I want to presevere the directory structer though. I got this far for a command. Will this remove the pdf's in subdirectories or just directly under the pdf folder? If... (6 Replies)
Discussion started by: vsekvsek
6 Replies
10. Shell Programming and Scripting
I want to delete directories which are empty and directories which are 2 level deep.
example: /app/data/logs/G07696115/G07696115
So if a same directory is there inside G07696115 with the same name G07696115, i want to find and delete that alone(Make sure you do not touch directory any... (4 Replies)
Discussion started by: gtm004
4 Replies
LEARN ABOUT LINUX
cvs-debuild
CVS-DEBUILD(1) General Commands Manual CVS-DEBUILD(1)
NAME
cvs-debuild - build a Debian package using cvs-buildpackage and debuild
SYNOPSIS
cvs-debuild [debuild options] [cvs-buildpackage options] [--lintian-opts lintian options]
DESCRIPTION
cvs-debuild is a wrapper around cvs-buildpackage to run it with debuild as the package-building program. (This cannot simply be accom-
plished using the -C option of cvs-buildpackage, as it does not know how to handle all of the special debuild options.)
The program simply stashes the debuild and lintian options, and passes them to debuild when it is called by cvs-buildpackage. All of the
standard debuild options may be used (as listed below), but note that the root command specified by any --rootcmd or -r command-line option
will be passed as an option to cvs-buildpackage. The first non-debuild option detected will signal the start of the cvs-buildpackage
options.
The selection of the root command is slightly subtle: if there are any command-line options, these will be used. If not, then if cvs-
buildpackage is set up to use a default root command, that will be used. Finally, if neither of these are the case, then debuild will use
its procedures to determine an appropriate command, as described in its documentation.
See the manpages for debuild(1) and cvs-buildpackage for more information about the behaviour of each.
OPTIONS
The following are the debuild options recognised by cvs-debuild. All cvs-buildpackage and lintian options are simply passed to the appro-
priate program. For explanations of the meanings of these variables, see debuild(1).
--no-conf, --noconf
--rootcmd=gain-root-command, -rgain-root-command
--preserve-env
--preserve-envvar=var, -evar
--set-envvar=var=value, -evar=value
--lintian, --no-lintian
--ignore-dirname, --check-dirname
These should not be needed, but it is provided nevertheless.
SEE ALSO
cvs-buildpackage(1), debuild(1), dpkg-buildpackage(1) and lintian(1).
AUTHOR
This program was written by Julian Gilbey <jdg@debian.org>.
DEBIAN Debian Utilities CVS-DEBUILD(1)