verify version of FFS with command line

Get help for specific problems
dacorsa
Posts: 4
Joined: 28 Jul 2020

Post by dacorsa

Hi guys,

how verify the version of FreeFileSync in command line?

Thanks
therube
Posts: 146
Joined: 8 May 2006

Post by therube

Sigcheck is a command-line utility that shows file version number, timestamp information, and digital signature details, including certificate chains.

Or did you mean something else?
dacorsa
Posts: 4
Joined: 28 Jul 2020

Post by dacorsa

i mean in ubuntu, how can i use in command line?
Thanks
therube
Posts: 146
Joined: 8 May 2006

Post by therube

Still don't know that I'm following, but, Command Line Usage.
dacorsa
Posts: 4
Joined: 28 Jul 2020

Post by dacorsa

Very strange, there is not output in konsole...why, but i have found a workround:

verins=`cat /opt/FreeFileSync/CHANGELOG | grep '202' | head -n 1 | sort | uniq | grep -o -P '(?<=FreeFileSync ).*(?= )'` ; echo $verins
therube
Posts: 146
Joined: 8 May 2006

Post by therube

Is that supposed to be "grep 2020" or at least the purpose to find changes dated in 2020 (of which 202 would probably suffice)?
And if you 'head -n 1' then at most only 1 line should be returned, so what is the purpose of sort & uniq?
(Or is this a general type of query where it only happens to use 'head -n 1', in this instance?)

Also, & more importantly, it appears that the latest (i.e., current) version of FFS as listed in Changelog.txt is not date stamped, so you're actually picking up latest-1.
dacorsa
Posts: 4
Joined: 28 Jul 2020

Post by dacorsa

yes, 202 is suffice
i use that command for other program...but in this case yes, not need sort uniq
no, latest FFS not use date stamped:

./freefilesyncupdate.sh
download/FreeFileSync_11.0_Linux.tar.gz
11.0
11.0
L'ultima versione di FreeFileSync è già installata '11.0'

Bye