DOS33-perl/procat.pl

36 lines
498 B
Perl
Raw Normal View History

2019-01-14 16:39:07 +00:00
#!/usr/bin/perl -w
2019-01-15 18:53:14 +00:00
#
# procat.pl:
#
# Utility to get a 'catalog' (directory listing) of an Apple II ProDOS volume.
#
# 20190115 LSH
#
2019-01-14 16:39:07 +00:00
use strict;
use ProDOS;
my $debug = 0;
my $blk = 0x0;
while (defined $ARGV[0] && $ARGV[0] =~ /^-/) {
if ($ARGV[0] eq '-d') {
$debug = 1;
shift;
} elsif ($ARGV[0] eq '-b' && defined $ARGV[1] && $ARGV[1] =~ /^\d+$/) {
$blk = $ARGV[1];
shift;
shift;
}
}
my $pofile = shift or die "Must supply filename\n";
2019-01-14 19:23:59 +00:00
cat($pofile, $debug);
2019-01-14 16:39:07 +00:00
1;