home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 February
/
PCWorld_2000-02_cd.bin
/
live
/
sbin
/
kernelversion
< prev
next >
Wrap
Text File
|
1998-10-18
|
460b
|
24 lines
#!/bin/sh
# Small script to get the kernel version
# Made by W.Akkerman <wakkerma@wi.leidenuniv.nl> for the Debian modules package.
# Helper functions from Bruce Perens to replace cut
pick1() {
eval 'echo $'"$pick_index"
}
pick() {
OLD_IFS=IFS
local delimiter="$1"
shift
pick_index="$1"
shift
IFS=" "$delimiter
pick1 $*
IFS=$OLD_IFS
unset pick_index
}
version=$(uname -r)
echo `pick . 1 $version`.`pick . 2 $version`