Hello guys it's me again, I need some help. What I'm doing is listing all the file and directories Recusively and using it a a master file. Then I need to do the same the nest day to make sure nothing was deleted or modified. What happen is file in one of out major directories was deleted without... (2 Replies)
Hi,
I'm looking to delete some files from directories.
I've just put in a file the location of these files.
e.g:
in file supprs.txt there is:
/usr/host/t1.txt
/etc/dev/u1.java
/home/new/files/view.c
Is it possible to take this file "supprs.txt" as a parameter in a shell command ? (2 Replies)
Hello all,
Here's the deal...I have one directory with many subdirs and files.
What I want to find out is who is keeping old files and directories...say files and dirs that they didn't use since a number of n days, only one level under the initial dir. Output to a file.
A script for... (5 Replies)
I am writing a simple backup script, but I cannot figure out how to remove directories that are found in a list. For example:
DONT_COPY="
.adobe/
.bin/google-earth
"
tar -zcvf - * --exclude=$DONT_COPY | openssl des3 -salt -k $1 | dd of=$(hostname)-$(date +%Y%m%d).tbz > COPIED
Note that... (4 Replies)
Hi ,
I am very new to unix as well as shell scripting. I have to write a script for the following requirement.
In a particular mount, have to list all the directories and sub directories along with size of the directory and sub directory in ascending order.
Please help me in this regard and many... (4 Replies)
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)
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)
Hi,
I have a command in my bash script, searchDirectoryName.sh:
DIR_NAME=$(find . -type d)
echo "${DIR_NAME}"
.
./Dir1
./Dir1/1.0.2.1
./Dir2
./Dir2/1.1
./Dir3
./Dir3/2.2.1
How can I select only following directory names with second subdirectoies and without first ./ in the... (3 Replies)
It is for HP-Unix B.11.31.
Requirement:
1. List the directories, having given pattern in the directories name, sorted by creation date.
Example: Directories with name "pkg32*" or "pkg33*"
2. On the output of 1. list the directories by creation date as sort order, with creation date... (2 Replies)
Requirement is to list the files older than 365 days from multiple directories and delete them and log the list of files which are deleted to a log file.
so 1 script should only list files older than 365 days for each directory separately to a folder
The other script should read these files... (7 Replies)
Discussion started by: prasadn
7 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)