in reply to system function

Thanx chromatic. Your answer was really helpful.
Mortis, sorry for confusion. I should have put mv $file1
$file2.