Well you are trying it in a wrong way. You have mixed two criteria into one. First, you need to list down the directories with name starting with A. Then you need to find out the files on each of these directories.
Here you go:
The list of files according to your criteria gets stored in a file called report in /tmp directory.
Last edited by admin_xor; 12-29-2011 at 08:41 AM..
I have 20 files in a direcotry like BARE01_DLY_MKT_YYYYMMDD. The MKT differes for all these files but the remaining syntax remains the same for a particular day. If I am checking for today I need to make sure that there are 20 files that start with BARE01_DLY_MKT_20060720. How can I write a... (31 Replies)
Hi,
I have to copy a set of files abc* in /path/ to /path1/ as abc*_bkp.
The list of files appear as follows in /path/:
abc1
xyszd
abc2
re2345
abcx
..
.
abcxyz
I have to copy them (abc* files only) into /path1/ as:
abc1_bkp
abc2_bkp
abcx_bkp
..
. (6 Replies)
Hi,
I'm searching for a pattern 'java' under a directory but it is returning all the files containing 'java', but I want to have only distinct files not all.
please help (2 Replies)
Hello,
I need to find all *.xml files that matched by pattern on Linux. I need to have written the file name on the screen and then change the pattern in the file just was found.
For instance.
I can start the script with arguments for keyword and for value, i.e
script.sh keyword... (1 Reply)
I would need a command for finding first 15000 of the file names whose 25th postion is 5 in the current directory alone.
I do have this painful command
find . -name '5*' | head -15000 | cut -c3-
please refine this.
Of course the above command also searches in the sub directories... (3 Replies)
I need a Shell script which take two inputs which are
1) main directory where it has to search and
2) pattern to search within main directory all files (.c and .h files)
It has to print number of pattern found in main directory & each sub directory.
main dir --> Total pattern found = 5
|... (3 Replies)
Hello all,
this is my first and probably not my last question around here. I do hope you can help or at least point me in the right direction.
My question is as follows, I need to find files and possible folders which are not owner = AAA group = BBB with a said location and all sub folders ... (7 Replies)
I used rm * and it deleted the files in the directory but gives and error message for unsuccessful subdirectory deletion.
"rm: cannot remove 'DirectoryName': Is a directory"
I dont want to explicitly get the above error.
What are the modifications I have to do in the rm command? (3 Replies)
Hi,
I have file in my $datadir as below :-
SAT_1.txt
SAT_2.txt
BAT_UD.lst
BAT_DD1.lst
DUTT_1.txt
DUTT_la.txt
Expected result :-
should get all the above file in $<Filename>_file.lst
Below is my code :-
for i in SAT BAT DUTT
do
touch a.lst
cd $datadir (1 Reply)
Hi,
From below directories path I need the directory which comes immediately after the "DataPath"
/var/errors/LogDefaultPath/DataPath/Data01/Data02 (Directory name "Data01" is the result from this path)
/var/errors/LogDefaultPath/DataPath/Log01/Log0202 (Directory name "Log01" is the... (4 Replies)
Discussion started by: Yuvaan12
4 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)