Article View: pl.comp.os.linux.programowanie
Article #60276bash - porownanie wer. programow
From: GM
Date: Sun, 30 Oct 2005 02:49
Date: Sun, 30 Oct 2005 02:49
23 lines
1169 bytes
1169 bytes
Czesc,
Mam problem z onapisaniem skryptu ktory porowna mi 2 wer. programow...
moze ktos ma cos podobnego gotowego lub przynajmniej jakas podpowiedz prosze
#!/bin/bash
aa="test-3.2.5-1" # lub "3.2.5.4"
bb="test-5.4.5-2" # no i czasami w wer.
#moze byc np. jakas nazwa ;( np. 3.2.1rc2
if [ $aa > $bb ]
then
echo "a jest wieksze"
else
echo "b jest wieksze"
fi
Za pomoc z gory dziekuje
--
GM
Technical Details
Message-ID:
<dk18op$2e3$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: GM <gmaziarek@gazeta.pl> Newsgroups: pl.comp.os.linux.programowanie Subject: bash - porownanie wer. programow Date: Sun, 30 Oct 2005 02:49:26 +0000 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 23 Message-ID: <dk18op$2e3$1@inews.gazeta.pl> Reply-To: gmaziarek@gazeta.pl NNTP-Posting-Host: cpc3-pete2-3-0-cust95.pete.cable.ntl.com Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1130636889 2499 81.110.180.95 (30 Oct 2005 01:48:09 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Sun, 30 Oct 2005 01:48:09 +0000 (UTC) X-User: gmaziarek User-Agent: KNode/0.8.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit