I am facing a problem. I need to do a script which to generate the temp.txt file first when select from database, until the data finish store into temp file then -> MV temp.txt to finish.txt.
Any idea? or any sample script for me to refer? I am shell script beginner. Thank you