Revert "make the sorting more robust by using natural sort"
authormkrzewic <mikolaj.krzewicki@cern.ch>
Tue, 21 Oct 2014 12:21:04 +0000 (14:21 +0200)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Tue, 21 Oct 2014 12:21:04 +0000 (14:21 +0200)
This reverts commit 98ac7fff4daa58eb9a3bed8f581a6d8a5d325b35.
bad idea - non-portable

PWGPP/QA/scripts/alienSync.sh

index 87072d1..fe13515 100755 (executable)
@@ -180,7 +180,7 @@ main()
       #echo grep -n ${destination} $candidateLocalFileDatabase | sed "s/:/ /"  | sort -rk4
       #grep -n ${destination} $candidateLocalFileDatabase| sed "s/:/ /"  | sort -rk4
       #this guy contains: index of the original entry, local file name, md5, ctime
-      candidateDBrecord=($(grep -n ${destination} $tmp/${candidateLocalFileDatabase##*/}| sed "s/:/ /"  | sort -Vrk4|head -n1 ))
+      candidateDBrecord=($(grep -n ${destination} $tmp/${candidateLocalFileDatabase##*/}| sed "s/:/ /"  | sort -rk4|head -n1 ))
       originalEntryIndex=${candidateDBrecord[0]}
       [[ $lineNumber -ne $originalEntryIndex ]] && continue
     fi