Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Print result of mv -n

$
0
0
I am trying to move files which donot have same filename using

Code:

find /Users/ParijatMac/desktop/unix/new_dir -type f -mmin +"$HRS"  -exec mv -n "{}" /Users/ParijatMac/desktop/unix/old_dir \; -print

but i am getting all filenames including the ones with duplicate names.Please help me to sort this out.
Thanks in advance

Viewing all articles
Browse latest Browse all 16232

Latest Images

Trending Articles



Latest Images