Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Number of files in all (sub-)directories Post 302658641 by deleriumdog on Tuesday 19th of June 2012 04:47:32 PM
Old 06-19-2012
@rbatte1,

Can you add this in the command from jayan_jay?

Many thanks,

Wim
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash scripting to compare N number of files located in two directories

I want to compare "N" (around 2000+) number of huge files located in a directory A against "N" files located in a different directory using Bash scripting. Please help me with any scripts available. Thanks. (2 Replies)
Discussion started by: Sangtha
2 Replies

2. Shell Programming and Scripting

Help with command to Move files by X number to seperate directories

Hello, I need help finding a script that will allow me to move files from one directory to another directory 10k files at a time. I have a directory that has 100 K files in it. I need to have those 100k files broken apart to separate directories each with 10k files in them. Here is the... (8 Replies)
Discussion started by: Geo_Bean
8 Replies

3. UNIX for Dummies Questions & Answers

How to get number of files and directories?

Hi All, can you please tell me how to get no.of files and directories in the given directory.:confused: (4 Replies)
Discussion started by: raju110384
4 Replies

4. UNIX for Dummies Questions & Answers

List directories and sub directories recursively excluding files

Hi, Please help me, how to get all the direcotries, its sub directories and its sub directories recursively, need to exclude all the files in the process. I wanted to disply using a unix command all the directories recursively excluding files. I tried 'ls -FR' but that display files as... (3 Replies)
Discussion started by: pointers
3 Replies

5. Shell Programming and Scripting

Need help with examine the number files in directories given as arguments

Hi , this is homework .. I have to finish it tomorrow, I did my best , but I found it so difficult .. Can You HELP Me ??! Write a bash shell script filestatic. The script should examine the number files in directories given as arguments (parameters) to this script. a. if one argument is... (1 Reply)
Discussion started by: abo-el-sos
1 Replies

6. Shell Programming and Scripting

How to list all the files, directories and sub-directories in the current path except one directory?

Can anyone come up with a unix command that lists all the files, directories and sub-directories in the current directory except a folder called log.? Thank you in advance. (7 Replies)
Discussion started by: Manjunath B
7 Replies

7. Shell Programming and Scripting

Script to count number of files in directories

Hi All! I would like to have a script that will count the number of files at the top of the hour of soome directories and mail the results to me. I was thinking on : a=`/directory/subdirectory/ | wc -l` echo "/directory/subdirectory :$a" b=`/another_dir/subdir/ | wc -l` echo... (12 Replies)
Discussion started by: fretagi
12 Replies

8. Shell Programming and Scripting

How to count number of files in directory and write to new file with number of files and their name?

Hi! I just want to count number of files in a directory, and write to new text file, with number of files and their name output should look like this,, assume that below one is a new file created by script Number of files in directory = 25 1. a.txt 2. abc.txt 3. asd.dat... (20 Replies)
Discussion started by: Akshay Hegde
20 Replies

9. Shell Programming and Scripting

Archiving and moving files into directories, creating directories, etc.

how can i move "dataName".sql.gz into a folder called 'database' and then move "$fileName".tar.gz * .htaccess into a folder called 'www' with the entire gzipped file being "$fileName".tar.gz? Is this doable or overly complex. so mydemo--2015-03-23-1500.tar.gz > database -... (5 Replies)
Discussion started by: wyclef
5 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 09:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy