rsync is the tool for this sort of thing, the --dry-run option should report what would happen if you went ahead, it runs over ssh and is quite configurable.
This might be a good starting point:
Thank you so much.. can you brief me what does --del mean??
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (0 Replies)
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (31 Replies)
Hi
I want to store the file names into an array.
I have written like this but I am getting error.
declare -A arr_Filenames
ls -l *.log | set -A arr_Filenames $(awk '{print $9}')
index=0
while (( $index < ${#arr_Filenames
})); do
Current_Filename=${arr_Filenames}
... (5 Replies)
I hope I can explain this correctly. I am using Bash-4.2 for my shell.
I have a group of file names held in an array. I want to compare the names in this array against the names of files currently present in a directory. If the file does not exist in the directory, that is not a problem.... (5 Replies)
Hi All,
can some one suggest me a tool to compare file ownership/permission and contents of files located at two different unix servers?
Thanks,
Pranav (1 Reply)
Hi all,
I have a directory with multiple (thousnads) of files, which are named this way
ABCDEF.wo.im-1
OKRAME.ire.roi
IOJEAFO01.irt.gfg
IMNYBL05.REG.gkf
I would like to keep the part of the name (everything before the first dot in the filename).
The desired output:
ABCDEF... (3 Replies)
So, I have a directory tree that has many files named thusly:
X_REVY.PDF
I need to find any files that have the same X portion (which can be nearly anything) as any another file (in any directory) but have different Y portions (which can be any number from 1-99).
I then need it to return... (3 Replies)
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies
LEARN ABOUT V7
dh_ucf
DH_UCF(1) Debhelper DH_UCF(1)NAME
dh_ucf - register configuration files with ucf
SYNOPSIS
dh_ucf [debhelperoptions] [-A] [-n] [file...]
DESCRIPTION
dh_ucf is a debhelper program that is responsible for generating the postinst and postrm commands that register files with ucf(1) and
ucfr(1).
FILES
debian/package.ucf
List pairs of source and destination files to register with ucf. Each pair should be put on its own line, with the source and
destination separated by whitespace. Both source and destination must be absolute paths. The source should be a file that is provided
by your package, typically in /usr/share/, while the destination is typically a file in /etc/.
A dependency on ucf will be generated in ${misc:Depends}.
OPTIONS -A, --all
Install all files specified by command line parameters in ALL packages acted on.
-n, --no-scripts
Do not modify postinst/postrm scripts. Turns this command into a no-op.
file ...
Install these info files into the first package acted on. (Or in all packages if -A is specified).
NOTES
Note that this command is not idempotent. dh_prep(1) should be called between invocations of this command. Otherwise, it may cause multiple
instances of the same text to be added to maintainer scripts.
SEE ALSO debhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org> Jeroen Schot <schot@a-eskwadraat.nl>
11.1.6ubuntu2 2018-05-10 DH_UCF(1)