Oninit Logo
The Down System Specialists
+1-913-674-0360
+44-2081-337529
Partnerships Contact

Display Data Page

A very simple script that dumps a data page

#! /bin/ksh

if [ $# != 3 ]
then
	echo "Usage: `basename $0` <chunk> <page> <pagesize>"
	exit
fi
CHNK=$1
PAGE=$2
PGSIZE=
FNAME=`basename $CHNK`

let SKIP=${PAGE}+53
dd if=${CHNK} bs=${PGSIZE} skip=${SKIP} count=1 of=page.${FNAME}.${PAGE}
od -x < page.${FNAME}.${PAGE}  > od.${FNAME}.${PAGE}
cat od.${FNAME}.${PAGE}

To discuss how Oninit ® can assist please call on +1-913-674-0360 or alternatively just send an email specifying your requirements.