/usr/lib/radare/bin/read is in radare-common 1:1.5.2-6.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/sh
#
TARGET="$1"
OFFSET="$2"
LENGTH="$3"
[ "${TARGET}" = "-h" ] && LENGTH=""
if [ -z "${LENGTH}" ]; then
echo "Usage: read [file] [offset] [length]"
exit 1
fi
echo "
seek $OFFSET
b $LENGTH
pX
quit
" | radare -v "${TARGET}"
|