07-12-2001
cp will automatically overwrite an existing file with the same name unless you use -i (interactive)
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am just beginning to learn unix and I was wondering if there was a list of all the options somewhere on the net or hidden in the man pages?
Also do options always have - and then a letter, or can it be - and a number as well? Thanks! (1 Reply)
Discussion started by: terms5
1 Replies
2. AIX
Hi All,
I have a situation here that's very fun...
I have a system with AIX and iPlanet (sunOne) installed, when occurs an unknown event on the network the WebServer shows a thousand of CLOSE_WAIT connections and this number grows and grows until the webserver crashs.
I read some documents... (2 Replies)
Discussion started by: nascimento.rp
2 Replies
3. Shell Programming and Scripting
Hi
I am currently using uniq -u and uniq -d option in my program to get uniq and duplicate lines from file.
What i doing is
uniq -c file1>file_u
uniq -d file1>file_d
cat file_u file_d > file_fiinal
Since i am procesing a larger files the I/O operations is costly affair.
Hence I would... (0 Replies)
Discussion started by: dhanamurthy
0 Replies
4. Shell Programming and Scripting
Hi Team,
I have a list of 12000 files and i am need to search for the names of the file which has long version numbers (say more than 5 decimals).. With the below instance
u~15.1.4.1.2.1.5.1.5.1.24.1.24.1.5
lk-l~22.1.3.1.9.1.7.1.24.1.23
YDFVALLN.CPY~1
YEUPCASE.CPY~1
YFPRSTID.CPY~1... (2 Replies)
Discussion started by: ganga.dharan
2 Replies
5. Solaris
Hi ,
I have a requirement to find the aliases by doing an nslookup on the Cname.
If i do an nslookup on the alias name i get the Cname , but i need the cname from alias name.
eg: Hostname = acb.example.com
Virtual name= abcvirtual.example.com
nslookup abcvirtual.example.com will... (3 Replies)
Discussion started by: mpics66
3 Replies
6. Shell Programming and Scripting
Hi All,
Wanted to know is there any option in HP-UX like "ping -c" in AIX.
As I am using ping in a script and on the basis of its return value will perform some actions.
Thanks (1 Reply)
Discussion started by: ss_ss
1 Replies
7. Solaris
Hi everyone,
Question for gurus:
Is there a way for us to determine the options used by a socket?
I basically want to know if SO_KEEPALIVE is enabled on a socket to know if the tcp_keepalive_abort_interval parameter will be used by that connection.
Was I clear enough? :confused:
... (0 Replies)
Discussion started by: plmachiavel
0 Replies
8. Ubuntu
Hello Everyone,
First of all, I highly appreciate all Linux forum members and whole Linux community. http://forums.linuxmint.com/images/smilies/icon_wink.gif. I wish you the best for all of you !
I will try to be short and concise: I am using Linux Mint 10 for 2 months on 2 ws, and all went... (3 Replies)
Discussion started by: cdt
3 Replies
LEARN ABOUT OPENSOLARIS
copywin
curs_overlay(3CURSES) Curses Library Functions curs_overlay(3CURSES)
NAME
curs_overlay, overlay, overwrite, copywin - overlap and manipulate overlapped curses windows
SYNOPSIS
cc [ flag ... ] file ... -lcurses [ library ... ]
#include <curses.h>
int overlay(WINDOW *srcwin, WINDOW *dstwin);
int overwrite(WINDOW *srcwin, WINDOW *dstwin);
int copywin(WINDOW *srcwin, WINDOW *dstwin, int sminrow,
int smincol, int dminrow, int dmincol,
int dmaxrow, int dmaxcol, int overlay);
DESCRIPTION
The overlay() and overwrite() routines overlay srcwin on top of dstwin. scrwin and dstwin are not required to be the same size; only text
where the two windows overlap is copied. The difference is that overlay() is non-destructive (blanks are not copied) whereas overwrite() is
destructive.
The copywin() routine provides a finer granularity of control over the overlay() and overwrite() routines. Like in the prefresh() routine,
a rectangle is specified in the destination window, (dminrow, dmincol) and (dmaxrow, dmaxcol), and the upper-left-corner coordinates of the
source window, (sminrow, smincol). If the argument overlay is true, then copying is non-destructive, as in overlay().
RETURN VALUES
Routines that return an integer return ERR upon failure and an integer value other than ERR upon successful completion.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO
curs_pad(3CURSES), curs_refresh(3CURSES), curses(3CURSES), attributes(5)
NOTES
The header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h>.
Note that overlay() and overwrite may be macros.
SunOS 5.11 31 Dec 1996 curs_overlay(3CURSES)