{"id":15553,"date":"2021-12-19T13:32:04","date_gmt":"2021-12-19T13:32:04","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=15553"},"modified":"2021-12-19T13:32:23","modified_gmt":"2021-12-19T13:32:23","slug":"solved-comparing-decimal-numbers-in-unix-shell-script","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/unix\/comparing-decimal-numbers-in-unix-shell-script\/9192.html","title":{"rendered":"Solved Comparing Decimal Number&#8217;s In Unix Shell Script"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I&#8217;m stuck on this issue where i need to compare Decimal number&#8217;s in unix shell script.<br \/>\nExample:<br \/>\nWant to compare file versions<br \/>\nversion of &#8220;File1&#8221; is 11.5.69<br \/>\nversion of &#8220;File2&#8221; is 11.5.70<\/p>\n<p>Now File2 is a newer version , and now if i compare File1 and File2 it should show me File2 is greater.<\/p>\n<p>Kindly help me on this.<\/p>\n<p>Thanks in advance.<\/p>\n<p>Rajz<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":65},"question-category":[64],"question_tags":[],"class_list":["post-15553","question","type-question","status-publish","hentry","question-category-unix"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/15553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=15553"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=15553"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=15553"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=15553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}