|
Re: for loop to cp file [message #194694 is a reply to message #194687] |
Sun, 24 September 2006 04:42 |
orausern
Messages: 826 Registered: December 2005
|
Senior Member |
|
|
if u mean that you want to copy the datafiles from one directory to another, then perhaps that is best done via operating system commands and not from sqlplus. Still if you want to execute from sql plus then the script should have commands like :
host copy n1.sql n2.sql
(to copy n1.sql file to n2.sql)
|
|
|
Re: for loop to cp file [message #194880 is a reply to message #194694] |
Mon, 25 September 2006 19:45 |
andrew again
Messages: 2577 Registered: March 2000
|
Senior Member |
|
|
/users/home/scott>>ksh
/users/home/scott>>ls *.log > t.txt
/users/home/scott>>while read i
> do
> echo "---> $i"
> done < t.txt
---> a.log
---> b.log
---> c.log
|
|
|