Did you discard the exclusion of files that i mentioned in the OP ?
You seem to have only mentioned exclusion of directory while i wanted exclusion of files (which works in the OP command) along with the directories.
Kindly help.
---------- Post updated at 03:36 PM ---------- Previous update was at 03:34 PM ----------
Quote:
Originally Posted by RudiC
This is immediately from man find:
Do you feel able to adapt it to your problem?
I am not able to understand your suggestion so as to make changes to include the directories along with the files. Can you tweak the command in the OP to include directories is what i m seeking help for.
Please help.
---------- Post updated at 03:36 PM ---------- Previous update was at 03:36 PM ----------
Quote:
Originally Posted by RudiC
This is immediately from man find:
Do you feel able to adapt it to your problem?
I am not able to understand your suggestion so as to make changes to include the directories along with the files. Can you tweak the command in the OP to include directories is what i m seeking help for.
Howdy
I have this directory structure ...
eep
eepaptest
eepfatest
eepgltest
eep.old
eeppoptest
ehf
ehfaptest
ehfgltest
ehp
ehpgltest
I want to find files in these directories, but I want to exclude eep, ehf & ehp.
Cany anyone help with the correct command ?? (1 Reply)
Hello,
I have a line in my script to find the files changed in the last 24 hours. It is as below:
find /home/hary -type f -mtime -1
I now want to exclude a directory named "/home/hary/temp/cache" from the above find command. How do I add it to my script?
Any help is appreciated.
... (9 Replies)
Hi,
Can some one help me how to exclude multiple directories using find command..
I have the directory structure below.
/a/a1/b1
/a/c1/c2
/a/d1/d2/d3
I want to exlcude a1,c2and d3 from the above using find,can some one suggest pls..
thanks in advance...
Use code tags... (1 Reply)
Hi Forum.
I'm trying to write a script that finds and deletes files that are older than 300 days. The script will read a table that contains the following 3 columns:
1st col: “Y” means sub-directory scan; "N" means no subdirectory scan
2nd col: sub-directory location
3rd col: File prefix... (7 Replies)
Hi,
I use find command to list all the files in a directory and its sub-directories, but the problem is to exclude certain directories during search. Can i give the directory names in command line to skip them and search rest of the directories?
For example i have directories:
test
../test1... (1 Reply)
Hi,
Firstly - sorry for the duplicate my other post looked like i was posting a how to for people. But i am wanting some help :P
I want to search from / to find files and exclude my mounted ntfs drives.
I have found this thread (Which I can't post the URL to until i have 5 posts) it's... (4 Replies)
Hi all,
Using grep command, i want to find the pattern of text in all directories and sub-directories.
e.g: if i want to search for a pattern named "parmeter", i used the command
grep -i "param" ../*
is this correct? (1 Reply)
Hi, im having some issues after i execute the next command:
tar -cvf /varios/restore/test.tar -X /jfma/test1/excludefile /jfma | gzip -c > /varios/restore/test.tar.gz
this creates the desired "test.tar.gz" file, but whe i try to open it it says "tar: 0511-164 There is a media read or write... (6 Replies)
Hi,
uname -a
SunOS mymac 5.11 11.2 sun4u sparc SUNW,SPARC-Enterprise
I need to tar a folder /tmp/moht but do not want these three folders to be included in the tar file -> savejpg, bmpsave and imgsave
I tried --exclude, -path, -not options but it says bad option
Can you help me with... (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT PLAN9
dh_clean
DH_CLEAN(1) Debhelper DH_CLEAN(1)NAME
dh_clean - clean up package build directories
SYNOPSIS
dh_clean [debhelperoptions] [-k] [-d] [-Xitem] [path...]
DESCRIPTION
dh_clean is a debhelper program that is responsible for cleaning up after a package is built. It removes the package build directories, and
removes some other files including debian/files, and any detritus left behind by other debhelper commands. It also removes common files
that should not appear in a Debian diff:
#*# *~ DEADJOE *.orig *.rej *.SUMS TAGS .deps/* *.P *-stamp
It does not run "make clean" to clean up after the build process. Use dh_auto_clean(1) to do things like that.
dh_clean should be the last debhelper command run in the clean target in debian/rules.
FILES
debian/clean
Can list other paths to be removed.
Note that directories listed in this file must end with a trailing slash. Any content in these directories will be removed as well.
OPTIONS -k, --keep
This is deprecated, use dh_prep(1) instead.
The option is removed in compat 12.
-d, --dirs-only
Only clean the package build directories, do not clean up any other files at all.
-Xitem --exclude=item
Exclude files that contain item anywhere in their filename from being deleted, even if they would normally be deleted. You may use this
option multiple times to build up a list of things to exclude.
path ...
Delete these paths too.
Note that directories passed as arguments must end with a trailing slash. Any content in these directories will be removed as well.
SEE ALSO debhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
11.1.6ubuntu2 2018-05-10 DH_CLEAN(1)