made it using cat | tee instead of mv, cause mv removing target too.