yes can answer no :-D thus "yes n | cp -i" should do the job
2013/3/10 Peng Yu <[email protected]> > Hi, > > -i can prompt warning messages. But I have to type n to avoid > overwriting files. I found 'yes' to print 'y' repetitively. Is there > something I can use to cp without overwrite files but with warning > messages printed automatically? > > -- > Regards, > Peng > >
