07-15-2005
there is no -p flag with mv, but you can use cp -p file dest/and remove the original file.
if the destination dir is on the same partition i think you can also use ln
Last edited by becket; 07-15-2005 at 07:24 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to write a script that checks the DTS of a file the compares it to the current time. If greater that 60 mins has gone by and the file has not been written to alert.
So far I have the time pulled from the file but I dont know how to compare the times against a 60 min difference.
... (2 Replies)
Discussion started by: jarich
2 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
Wondering if there is have a date added at the end of a test string. I have a hypothetical text file day one:
John
Paul
George
When the file day one is output, I'd like it to read something like this:
John 101406
Paul 101406
George 101406
Day two, when the same text file... (0 Replies)
Discussion started by: JimmyFlip
0 Replies
3. Shell Programming and Scripting
Hi,
I am using the below copy command, to copy the file sbn to sbn1,
cp sbn sbn1
but its changing the date stamp of file sbn1, but i dont want to change the date stamp of sbn1.
Could you please help me out in this. (3 Replies)
Discussion started by: shivanete
3 Replies
4. Shell Programming and Scripting
I need some help recovering from a "slight" screwup. We just moved 3 TB of data from one RAID Array to another. Low lever archive files. This was done with a regular cp (for some reason) and now we have lost all the timestamps on the files, and we urgently need to get the timestamps back on these... (7 Replies)
Discussion started by: chj
7 Replies
5. Shell Programming and Scripting
hi everyone
i am facing a strange problem here
suppose content of my file is
a=1,2,3
b=2,3,4
c=4,5,6
time=
now the problem is i want to add value in front of time variable
and the value should be i format only "HHMMSS"
so it should be like this
a=1,2,3
b=2,3,4
c=4,5,6... (3 Replies)
Discussion started by: aishsimplesweet
3 Replies
6. Shell Programming and Scripting
Here is two time I have:
Jul 12 16:02:01
Jul 13 01:02:01
and how can I do a simple match to get difference between two time which is 09:00:00
Thanks in advance. (3 Replies)
Discussion started by: ford99
3 Replies
7. Shell Programming and Scripting
Hi All,
I am facing small problem.
i want to print file time stamp on which date file has placed in the server.
i have given some code but its not giving the year.
any help appreciated.
regards
rajesh. (4 Replies)
Discussion started by: rajesh_pola
4 Replies
8. Solaris
On Solaris 10 server the system date won't match with the timestamp on files created by a cron jobs, Please help
here is what i get when i check for system date
infodba-ie10ux014:/tcpdv1_ie10/tcadmin/bin\n\r-> date
Tue Apr 24 15:27:43 GMT 2012at same time i executed a cron job, and checked... (4 Replies)
Discussion started by: karghum
4 Replies
9. Shell Programming and Scripting
Hi !
I try to change a time-stamp hh:mm:ss allways to full ten-minutes.
example: 12:51:03 to 12:50:03
sed 's/::/:{0-5}0:/g' file.txt
but it will not work propperly, because the minute-decade will be replaced with the bracket-term {0-5}. Can someone please give me a hint?
Thanks in... (6 Replies)
Discussion started by: IMPe
6 Replies
10. Shell Programming and Scripting
I am creating log monitoring script and stuck up to get the logs between two time stamp.
can you please help me to create the script to get the logs between two time stamp, for example, I need the complete logs between # Time: 150328 1:30:10 and # Time: 150328 19:10:57
OS : Cent OS 6.x... (8 Replies)
Discussion started by: zenkarthi
8 Replies
LEARN ABOUT HPUX
xcopyarea
XCopyArea() XCopyArea()
Name
XCopyArea - copy an area of a drawable.
Synopsis
XCopyArea(display, src, dest, gc, src_x, src_y, width,
height, dest_x, dest_y)
Display *display;
Drawable src, dest;
GC gc;
int src_x, src_y;
unsigned int width, height;
int dest_x, dest_y;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
src Specify the source and destination rectangles to be combined. src and dest must have the same root and depth.
dest
gc Specifies the graphics context.
src_x Specify the x and y coordinates of the upper-left corner of the source rectangle relative to the origin of the source drawable.
src_y
width Specify the dimensions in pixels of both the source and destination rectangles.
height
dest_x Specify the x and y coordinates within the destination window.
dest_y
Description
XCopyArea() combines the specified rectangle of src with the specified rectangle of dest. src and dest must have the same root and depth.
If regions of the source rectangle are obscured and have not been retained in backing_store, or if regions outside the boundaries of the
source drawable are specified, then those regions are not copied. Instead, the following occurs on all corresponding destination regions
that are either visible or are retained in backing_store. If dest is a window with a background other than None, the corresponding regions
of the destination are tiled (with plane_mask of all 1's and function GXcopy) with that background. Regardless of tiling, if the destina-
tion is a window and graphics_exposures in gc is True, then GraphicsExpose events for all corresponding destination regions are generated.
If graphics_exposures is True but no regions are exposed, then a NoExpose event is generated.
If regions of the source rectangle are not obscured and graphics_exposures is False, one NoExpose event is generated on the destination.
XCopyArea() uses these graphics context components: function, plane_mask, subwindow_mode, graphics_exposures, clip_x_origin, clip_y_ori-
gin, and clip_mask.
Errors
BadDrawable
BadGC
BadMatch The src and dest rectangles do not have the same root and depth.
See Also
XClearArea(), XClearWindow(), XCopyPlane(), XDraw, XDrawArc(), XDrawArcs(), XDrawFilled(), XDrawLine(), XDrawLines(), XDrawPoint(), XDraw-
Points(), XDrawRectangle(), XDrawRectangles(), XDrawSegments(), XFillArc(), XFillArcs(), XFillPolygon(), XFillRectangle(), XFillRectan-
gles().
Xlib - Drawing Primitives XCopyArea()