Retourner au contenu associé (entrée de forum : renommer les fichier par script en nom_dossier_jour.jpg)
Posté par gotcha5832 le 08 janvier 2010 à 14:29. En réponse au message renommer les fichier par script en nom_dossier_jour.jpg. Évalué à 1.
width=$(identify -format '%w' "$image") height=$(identify -format '%h' "$image") ratio=$(($width / $height)) echo $ratio if [ $ratio -gt 0.7 ]
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: suite
Posté par gotcha5832 . En réponse au message renommer les fichier par script en nom_dossier_jour.jpg. Évalué à 1.
width=$(identify -format '%w' "$image")
height=$(identify -format '%h' "$image")
ratio=$(($width / $height))
echo $ratio
if [ $ratio -gt 0.7 ]
mais j'arrive pas à faire la division avec décimal. il me renvoie toujours $ratio
et pour le if il me dis:
/bin/reduc.sh: line 24: [: 0.7: integer expression expected
Merci à vous