Re: update software



#!/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


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list