HowtoRedmine: syntaxe

This commit is contained in:
Alexis Ben Miloud--Josselin 2022-12-12 17:54:21 +01:00
parent fb730a1476
commit c5b2e9bef2

View file

@ -322,6 +322,7 @@ $ cat ./lib/redmine/version.rb
~~~ ~~~
> Commande AWK pour extraire la version au format `x.y.z` : > Commande AWK pour extraire la version au format `x.y.z` :
>
> ~~~ > ~~~
> $ awk '/^ *MAJOR/ { major = $NF } /^ *MINOR/ { minor = $NF } /^ *TINY/ { tiny = $NF } END { printf "%u.%u.%u", major, minor, tiny }' ./lib/redmine/version.rb > $ awk '/^ *MAJOR/ { major = $NF } /^ *MINOR/ { minor = $NF } /^ *TINY/ { tiny = $NF } END { printf "%u.%u.%u", major, minor, tiny }' ./lib/redmine/version.rb
> ~~~ > ~~~