Hacker News new | ask | show | jobs
by bigbillheck 1836 days ago
Old versions of sort: http://man.cat-v.org/unix_7th/1/sort

Unix utilities in the old days weren't all that great. One example I've posted about here before is how mv would refuse to move files across filesystem boundaries (because it's not a 'move', it's a 'copy and delete', so you had to use cp and rm instead).

2 comments

Thanks.

>BUGS Very long lines are silently truncated.

And didn't know that about `mv`, good to know.

It is a good practice to use cp + (verify) + rm instead of mv. Especially when the data is important.
or rsync --remove-source-files
mv doesn’t do that anymore. Is there any reason to use cp and rm instead of mv today?
paranoia... you could do cp + diff md5/sha1sum src/dst + rm