04-23-2011
I don't have CentOS and never used it, but I think its a RH variant.
which is the shell?
regards,
Ahamed
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am new to unix and would like to have a count of all the files in the current directory as well as all the files in a subdirectory.
The command I used was ls -R | wc -l
but the number returned wasn't correct. Can someone please help?
Thanks (2 Replies)
Discussion started by: cbeverly
2 Replies
2. Shell Programming and Scripting
Hi All,
How do i find out the number of files in a directory using unix command ? (14 Replies)
Discussion started by: Raynon
14 Replies
3. Shell Programming and Scripting
what's the script to do that?
i want to only count the number of files in that directory, not including any sub directories at all (5 Replies)
Discussion started by: finalight
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time..
Thanks (3 Replies)
Discussion started by: ammu
3 Replies
5. Shell Programming and Scripting
I am writing a bash script to find out all the files in a directory which are empty. I am running into multiple issues. I will really appreciate if someone can please help me.
#!/bin/bash
DATE=$(date +%m%d%y)
TIME=$(date +%H%M)
DIR="/home/statsetl/input/civil/test"
... (1 Reply)
Discussion started by: monasharma13
1 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
hi I am trying to write a script to count the number of files, with slightly different subset name, in a directory
for example, in directory /data, there are a subset of files that are name as follow
/data/data_1_(1to however many).txt
/data/data_2_(1 to however many).txt... (12 Replies)
Discussion started by: piynik
12 Replies
8. Shell Programming and Scripting
Hi All!
I need to have a script that counts the number of files arriving in a landing directory, them some app pick these files to be processed and load to a DB. But this process is so fast that I am not able to count all the files arriving on a landing directory.
Please can you help?
My... (6 Replies)
Discussion started by: fretagi
6 Replies
9. Shell Programming and Scripting
I'm writing a script for searching substring in file content and then moving found files. So far I've wrote script shown below
grep -lir 'stringtofind' $1 | xargs mv -t $2
How can i count number of files moved? (4 Replies)
Discussion started by: Kadikis
4 Replies
10. Shell Programming and Scripting
Chaps, I need to count number of files in a remote directory from Linux (FreeBSD) as if 10 trace files (log files) been generated within 5min of time. So this is the script then I can setup a monitoring.
I came across with ls -1 \ip\d:\Logs | wc -l but then what else requires to check time... (8 Replies)
Discussion started by: samwijekoon
8 Replies
LEARN ABOUT DEBIAN
dh_di_numbers
DH_DI_NUMBERS(1) Debhelper DH_DI_NUMBERS(1)
NAME
dh_di_numbers - install numbered scripts into package build directories
SYNOPSIS
dh_di_numbers [debhelper options] [dir [...] dest]
DESCRIPTION
dh_di_numbers is a debhelper program that installs directories of numbered scripts into package build directories.
Within each directory, there should be a "_numbers" file in which each line contains at least two space-separated fields. The first field
in each line is a two-digit number, which will be prefixed to the entry name to provide ordering within the directory; the second is the
entry name, which must correspond to a file or directory alongside the "_numbers" file; and the third field, if present, is another two-
digit number which identifies another entry with the same entry name to which this entry should be a symlink.
Any additional directory names specified as parameters will be installed in the package build directory of the first package dh_di_numbers
is told to act on. By default, this is the first binary package in debian/control, but if you use -p, -i, or -a flags, it will be the first
package specified by those flags.
FILES
debian/package.di-numbers
List the directories to install into each package and the directory they should be installed to. The format is a set of lines, where
each line lists a directory or directories to install, and at the end of the line tells the directory they should be installed in. The
name of the directories to install should be given relative to the current directory, while the installation directory is given
relative to the package build directory. You may use wildcards in the names of the files to install (in v3 mode and above).
OPTIONS
dir [...] dest
Lists directories to install and where to install them to. The files will be installed into the first package dh_di_numbers acts on.
SEE ALSO
debhelper(7)
This program is a part of dh-di.
AUTHOR
Colin Watson <cjwatson@debian.org>
3 2009-09-16 DH_DI_NUMBERS(1)