APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

© December 1997 Tony Lawrence

Tony Lawrence: showmem script

for i in 10 11 12 13 14 15
case $i in
        10) blk=A;;
        11) blk=B;;
        12) blk=C;;
        13) blk=D;;
        14) blk=E;;
        15) blk=F;;
for j in 0 1 2 3  
skp=`expr $i \* 4 + $j`
case $j in
        0) echo "       ${blk}0000 contains:";;
        1) echo "       ${blk}4000 contains:";;
        2) echo "       ${blk}8000 contains:";;
        3) echo "       ${blk}C000 contains:";;
dd if=/dev/mem bs=16k skip=$skp count=1 2> /dev/null | hd | sed -n "1,4p" 
done | pg

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> Unix Programs: showmem script

Inexpensive and informative Apple related e-books:

Take Control of Apple Mail, Third Edition

Take Control of Automating Your Mac

Take Control of Preview

El Capitan: A Take Control Crash Course

Take Control of Upgrading to El Capitan

More Articles by © Tony Lawrence

Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

Writing in C or C++ is like running a chain saw with all the safety guards removed. (Bob Gray)

Linux posts

Troubleshooting posts

This post tagged:



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode