Re: update software

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



#!/bin/bash

FILE="abc.2.3.tagr.gz"
echo $FILE | cut -f 2,3 -d.

(will output the version)
Of course this is making A LOT of assumptions on file format and such....
as long as your files are of the format <package_name>.<major_num>.<minor_num>.<extension>

-B

Waqas Toor wrote:

to be honest i use fedora but the script to write is purely distro independent..
so
if
wget abc.2.3.tar.gz .... how to check 2.3. part in this string in
bash.. as its the requirement



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux