Sponsored Content
Operating Systems AIX way to copy only changed files Post 302100045 by kapilraj on Friday 15th of December 2006 02:41:06 PM
Old 12-15-2006
cd /sourcedir;
find . -xdev -depth -print | cpio -pdm /destin_dir

# After some days ,

cd /sourcedir;
find . -xdev -depth -print | cpio -pdm /destin_dir

The second copy will copy only those files which were changed / created from the earlier copy made.

Regards,

Kaps
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to compare two flat files and get changed data

Hi, I need to compare two flat files (yesterday & today's data) and get only the changed data from flat files. In flat file i dont have data column or anything its just a string data in flat file.Can any one please let me know the script With Regds Shashi (3 Replies)
Discussion started by: jtshashidhar
3 Replies

2. Shell Programming and Scripting

Trying to Copy Files Changed Recently

I have been toying around with a script that will copy all files altered in a development directory over to a testing directory and have been trying to construct the command to meet my needs. Basically I am using find in a directory to see what files have changed over the past 24 hours. Then if... (4 Replies)
Discussion started by: scotbuff
4 Replies

3. Shell Programming and Scripting

compare files in two directories and output changed files to third directory

I have searched about 30 threads, a load of Google pages and cannot find what I am looking for. I have some of the parts but not the whole. I cannot seem to get the puzzle fit together. I have three folders, two of which contain different versions of multiple files, dist/file1.php dist/file2.php... (4 Replies)
Discussion started by: bkeep
4 Replies

4. AIX

script to ftp recent changed files

I am trying to write a script to ftp all files/directories changed in a 24hour period to another AIX server. I have wrote a script to generate a list of all files changed within a 24 hour period but dont know how to then ftp these to another server. How do incorporate ftp into this script? ... (2 Replies)
Discussion started by: RApds
2 Replies

5. UNIX for Dummies Questions & Answers

Find recently changed files

Hi, Can you guys tell me how do i find the most recently changed files, say an hour before, few hours before, a day before etc.... Thanks!!!! (3 Replies)
Discussion started by: raghu_shekar
3 Replies

6. Shell Programming and Scripting

how to get list of files changed by sed while replacing

Hi We have a shell script to find a string in a large set of files and replace it using the sed command.in the same time we also want to store the list of files it checked. *** The existing script is as below #!/bin/bash #1 _r1="inst_group=ems7770" _r2="inst_group=dba" # Escape path... (4 Replies)
Discussion started by: sabkan
4 Replies

7. UNIX for Dummies Questions & Answers

Find only files that changed Yesterday

Hi , I know that find / -type f -mtime -1 will show all modified files that changed 24hrs preceeding the time i run the command. This will include list of files that changed today. How do i find only files that changed yesterday staring from 00:00hrs to 23:59? Thanks HG (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies

8. UNIX for Dummies Questions & Answers

Copy and modify a file if the original has changed

Hi there, I have built up my own little "cloud" for my family as the amount of computers grows all day. By now we use 3 smartphones, 2 notebooks und 4 PCs, so this "home cloud" was made to store all personal data (photos, documents,...) and do a backup once in a while. It is running on a Ubuntu... (1 Reply)
Discussion started by: SebSnake
1 Replies

9. Web Development

When VPS IP is changed which web files to edit?

Hello, please when an VPS IP is changed which files on VPS i need to edit? I mean basic apache, named files, which needs to be edited? so far i listen its /var/named and domain zone file which contains old ip.. (2 Replies)
Discussion started by: postcd
2 Replies

10. Shell Programming and Scripting

Compare files to pull changed records only

Hi, I am using Sun Solaris - SunOS. I have two fixed width files shown below. I am trying to find the changes in the records in the Newfile.txt for the records where the key column matches. The first column is a key column (example: A123). If there are any new or deletion of records in the... (4 Replies)
Discussion started by: Saanvi1
4 Replies
QPaintDeviceMetrics(3qt)												  QPaintDeviceMetrics(3qt)

NAME
QPaintDeviceMetrics - Information about a paint device SYNOPSIS
#include <qpaintdevicemetrics.h> Public Members QPaintDeviceMetrics ( const QPaintDevice * pd ) int width () const int height () const int widthMM () const int heightMM () const int logicalDpiX () const int logicalDpiY () const int numColors () const int depth () const DESCRIPTION
The QPaintDeviceMetrics class provides information about a paint device. Sometimes when drawing graphics it is necessary to obtain information about the physical characteristics of a paint device. This class provides the information. For example, to compute the aspect ratio of a paint device: QPaintDeviceMetrics pdm( myWidget ); double aspect = (double)pdm.widthMM() / (double)pdm.heightMM(); QPaintDeviceMetrics contains methods to provide the width and height of a device in both pixels (width() and height()) and millimeters (widthMM() and heightMM()), the number of colors the device supports (numColors()), the number of bit planes (depth()), and the resolution of the device (logicalDpiX() and logicalDpiY()). It is not always possible for QPaintDeviceMetrics to compute the values you ask for, particularly for external devices. The ultimate example is asking for the resolution of of a QPrinter that is set to "print to file": who knows what printer that file will end up on? See also Graphics Classes and Image Processing Classes. MEMBER FUNCTION DOCUMENTATION
QPaintDeviceMetrics::QPaintDeviceMetrics ( const QPaintDevice * pd ) Constructs a metric for the paint device pd. int QPaintDeviceMetrics::depth () const Returns the bit depth (number of bit planes) of the paint device. int QPaintDeviceMetrics::height () const Returns the height of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget). Examples: int QPaintDeviceMetrics::heightMM () const Returns the height of the paint device, measured in millimeters. int QPaintDeviceMetrics::logicalDpiX () const Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes. For X, this is usually the same as could be computed from widthMM(), but it varies on Windows. Examples: int QPaintDeviceMetrics::logicalDpiY () const Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes. For X, this is usually the same as could be computed from heightMM(), but it varies on Windows. Example: helpviewer/helpwindow.cpp. int QPaintDeviceMetrics::numColors () const Returns the number of different colors available for the paint device. Since this value is an int will not be sufficient to represent the number of colors on 32 bit displays, in which case INT_MAX is returned instead. int QPaintDeviceMetrics::width () const Returns the width of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget). Examples: int QPaintDeviceMetrics::widthMM () const Returns the width of the paint device, measured in millimeters. SEE ALSO
http://doc.trolltech.com/qpaintdevicemetrics.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qpaintdevicemetrics.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QPaintDeviceMetrics(3qt)
All times are GMT -4. The time now is 08:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy