-rw-r--r-- 1 str661 strem 453465260 Dec 16 15:54 SATRYS2V1_20021218_temp_bias.nc
-rw-r--r-- 1 str661 strem 17669468 Dec 16 18:01 SATRYS2V1_20021225_hdyn_bias.nc
-rw-r--r-- 1 str661 strem 453465248 Dec 16 18:01 SATRYS2V1_20021225_sali_bias.nc
-rw-r--r-- 1 str661 strem 453465260 Dec 16 18:01 SATRYS2V1_20021225_temp_bias.nc
I've got also the same list
-rw-r--r-- 1 mar_stl marsstr 453465260 Dec 16 15:54 SATRYS2V1_20021218_temp_bias.nc
-rw-r--r-- 1 mar_stl marsstr 17669468 Dec 16 18:01 SATRYS2V1_20021225_hdyn_bias.nc
-rw-r--r-- 1 mar_stl marsstr 453465248 Dec 16 18:01 SATRYS2V1_20021225_sali_bias.nc
-rw-r--r-- 1 mar_stl marsstr 453465260 Dec 16 18:01 SATRYS2V1_20021225_temp_bias.nc
I need help to found a way to compare name files and size and see if there is any difference. The idea is to be sure the size of each file are exacly the same.
I made a file list from the remote sever and another file list with what I have on local.
I 've moved of list on my temporary directory to compare both of the list.
I believed your script compare a list file made on the remote server and compare with what I have on the directory. If is this way how works the code, I will try anyway. I want to say thansk a lot for your help, and in other way make your work as help to anyone that will try to do the same thnigs I am doing.
You should get only file names instead of size.$NF represents last column in your file. So if your file contains the last column as file name then it should print as Correct: filename.txt. And you have confirmed the same in the updated post#4 Difference: GLORYS2V1_20030101_hdyn_bias.nc. Moreover be clear which file your going to compare with which.
The given code compares the local file with the remote file list and output's remote list's file which are matching.