Sponsored Content
Top Forums Shell Programming and Scripting Find every directory named XYZ under the DVLP directory Post 302864387 by CarloM on Wednesday 16th of October 2013 01:14:39 PM
Old 10-16-2013
Code:
find DVLP -type d -name "XYZ"

EDIT: Actually, do you want the directories, or the files in the directories? Your post title & post content say different things...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

create directory named current date

Since this site solved my problems before, I am back for more (solutions) I down load via a script every day a file that has the same name as the file of the day before. I want to move that file to its own directory like: /archive/jul30 How do I capture the systems date in a script an... (2 Replies)
Discussion started by: flowrats
2 Replies

2. UNIX for Dummies Questions & Answers

how to find a file named vijay in a directory using find command

I need to find whether there is a file named vijay is there or not in folder named "opt" .I tried "ls *|grep vijay" but it showed permission problem. so i need to use find command (6 Replies)
Discussion started by: amirthraj_12
6 Replies

3. UNIX for Dummies Questions & Answers

Script to find a string in a directory/sub-directory

I'm trying to find this string 'preparing string IBE_Quote_W1_Pvt.SaveWrapper for quote_header_id’ in my Apache log file directory. The log file that contains this string may be in a parent direcotry or a sub-directory. I have tried 'grep' and 'awk' with no success. I would like to get the path... (3 Replies)
Discussion started by: gross
3 Replies

4. Shell Programming and Scripting

Create a directory named as the current date

I am preparing a shell script to backup a few config files on a daily basis, with a retention of 30 days. Need some help with syntax/examples: The shell script (running as cron) would require the following: 1. create a sub-directory within a specified (backup) directory, in the format... (3 Replies)
Discussion started by: FeNiCrC_Neil
3 Replies

5. Shell Programming and Scripting

Need to find recursively all shell script in the /xyz directory

Pls. advise how to find or used grep recursively all shell script files. Some files doesnt have a .sh or .ksh extension name. find / -name "*" |xargs grep bin |grep sh ?? TIA (1 Reply)
Discussion started by: budz26
1 Replies

6. Homework & Coursework Questions

C Program to search and read all named pipes in current directory

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: Write a C program to search the current directory for all pipes. 1. It will print the pipe... (2 Replies)
Discussion started by: natwickley
2 Replies

7. Shell Programming and Scripting

Move all files not in a directory into a subdirectory named for each given file

Hi Everyone! Looking for some help with a script that will take all files in any given root folder (which are not already in a folder) and put them into separate folders with the name of each given file. Any ideas? Thank you! (1 Reply)
Discussion started by: DanTheMan
1 Replies

8. UNIX for Dummies Questions & Answers

Accessing a badly named directory

Someone in my group manages to name a directory -p. I'm not sure how they did it but it's there. How can I access the directory or change it's name? I've tried to quote it (cd "-p"). I've tried to use the backslash (cd \-p) and a combination of the two (cd "\-p" and cd \-p). each of these... (3 Replies)
Discussion started by: scottwevans
3 Replies

9. Shell Programming and Scripting

perl Compare zone files in directory with what is listed in named.conf

I would really appreciate any assistance that I can get here. I am fairly new to perl. I am trying to rewrite my shell scripts to perl. Currently I have a shell script (using sed, awk, grep, etc) that gets a list of all of the zone files in a directory and then looks in named.conf for what... (0 Replies)
Discussion started by: brianjb
0 Replies

10. UNIX for Beginners Questions & Answers

How to find and get a file in an entire directory with an excluded directory specified?

How to get a file 'zlib.h' in an entire directory with an excluded directory specified lives under that starting directory by using find command, as it failed on: $ find . -name 'zlib.h' -a -ipath 'CHROME.TMP' -prune -o -print it'll just list entirely up (2 Replies)
Discussion started by: abdulbadii
2 Replies
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)
All times are GMT -4. The time now is 01:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy