09-15-2011
Comparing files names in directory over two servers
Hi folks
I need to write a shell script to check whether source and the destination has the same files. The source and destination are over two servers and connecting through ssh. It should even compare the date i.e, the complete file name, date stamp and size should match. Should list out all the unmatched files in a log file.
Thank you so much
Warm Regards
Olivia
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: t17
0 Replies
2. UNIX for Dummies Questions & Answers
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)
Discussion started by: t17
31 Replies
3. Shell Programming and Scripting
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)
Discussion started by: dgmm
5 Replies
4. Shell Programming and Scripting
got it figured out :) (1 Reply)
Discussion started by: sHockz
1 Replies
5. Shell Programming and Scripting
i want to display all the files which has their names in the Uppercase in a particular directory...guide.. (6 Replies)
Discussion started by: sheelsadan
6 Replies
6. Shell Programming and Scripting
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)
Discussion started by: BudMan
5 Replies
7. Shell Programming and Scripting
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)
Discussion started by: Pranav Bhasker
1 Replies
8. Shell Programming and Scripting
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)
Discussion started by: Error404
3 Replies
9. Shell Programming and Scripting
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)
Discussion started by: Kamezero
3 Replies
10. Shell Programming and Scripting
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 REDHAT
xtinstallaccelerators
XtParseAcceleratorTable(3Xt) XT FUNCTIONS XtParseAcceleratorTable(3Xt)
NAME
XtParseAcceleratorTable, XtInstallAccelerators, XtInstallAllAccelerators - managing accelerator tables
SYNTAX
XtAccelerators XtParseAcceleratorTable(source)
String source;
void XtInstallAccelerators(destination, source)
Widget destination;
Widget source;
void XtInstallAllAccelerators(destination, source)
Widget destination;
Widget source;
ARGUMENTS
source Specifies the accelerator table to compile.
destination
Specifies the widget on which the accelerators are to be installed.
source Specifies the widget or the root widget of the widget tree from which the accelerators are to come.
DESCRIPTION
The XtParseAcceleratorTable function compiles the accelerator table into the opaque internal representation.
The XtInstallAccelerators function installs the accelerators from source onto destination by augmenting the destination translations with
the source accelerators. If the source display_accelerator method is non-NULL, XtInstallAccelerators calls it with the source widget and a
string representation of the accelerator table, which indicates that its accelerators have been installed and that it should display them
appropriately. The string representation of the accelerator table is its canonical translation table representation.
The XtInstallAllAccelerators function recursively descends the widget tree rooted at source and installs the accelerators of each widget
encountered onto destination. A common use os to call XtInstallAllAccelerators and pass the application main window as the source.
SEE ALSO
XtParseTranslationTable(1)
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 Release 6.6 XtParseAcceleratorTable(3Xt)