update software
Brad Bonkoski
bbonkoski at mediaguide.com
Mon Jul 31 19:36:54 UTC 2006
#!/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
>
More information about the fedora-list
mailing list