Line 0
Link Here
|
|
|
1 |
--- util/dasdlist.orig Sat Nov 4 16:30:04 2006 |
2 |
+++ util/dasdlist Sat Nov 4 16:30:22 2006 |
3 |
@@ -1,4 +1,4 @@ |
4 |
-#!/bin/bash |
5 |
+#!/bin/sh |
6 |
# |
7 |
# This command prints a track from a CKD DASD image file. |
8 |
# It uses the GNU Octal Dump (od) command to firstly obtain |
9 |
@@ -22,7 +22,7 @@ |
10 |
# |
11 |
# Check the first 8 bytes of the header for valid CKD DASD image file |
12 |
# |
13 |
-ckdid=`od -An -s --read-bytes=8 $filename` |
14 |
+ckdid=`god -An -s --read-bytes=8 $filename` |
15 |
if [ $ckdid != "CKD_P370" ]; then |
16 |
echo "File $filename is not a CKD DASD image file" |
17 |
exit 2 |
18 |
@@ -31,8 +31,8 @@ |
19 |
# |
20 |
# The next 8 bytes contain the tracks/cyl and track length constants |
21 |
# |
22 |
-heads=`od -An -tu4 --skip-bytes=8 --read-bytes=4 $filename` |
23 |
-trklen=`od -An -tu4 --skip-bytes=12 --read-bytes=4 $filename` |
24 |
+heads=`god -An -tu4 --skip-bytes=8 --read-bytes=4 $filename` |
25 |
+trklen=`god -An -tu4 --skip-bytes=12 --read-bytes=4 $filename` |
26 |
|
27 |
echo "$filename $(($heads)) trks/cyl, $(($trklen)) bytes/trk" |
28 |
|
29 |
@@ -54,5 +54,5 @@ |
30 |
# Dump the requested track |
31 |
# |
32 |
echo "$filename Cyl $(($cyl)) Head $(($head))" |
33 |
-echo "od -Ax -tx1 --skip-bytes=$offset --read-bytes=$num $filename" |
34 |
-od -Ax -tx1 --skip-bytes=$offset --read-bytes=$num $filename |
35 |
+echo "god -Ax -tx1 --skip-bytes=$offset --read-bytes=$num $filename" |
36 |
+god -Ax -tx1 --skip-bytes=$offset --read-bytes=$num $filename |