[BASH]read line by line, and compare
I want to read a file looks like this:
Code:
[a md5checksum][a space character][name of the file]
After reading it, I want to split it by space, and compare md5checksum of first line to second, second to third etc. I will sort the data beforehand, so doing this, I am aiming to achieve checking for dublicate files, even if name, modification date etc. are different. After finding them, I will probably execute some other code on them.
Is there a good example you know that will teach me how I could do this, or can you provide that example for me?
Yaşar Arabacı
The only problem with troubleshooting is that sometimes trouble shoots back.
My blog (in Turkish): http://yasar.serveblog.net
Bookmarks