/usr/lib/magicrescue/tools/script_rename.pl is in magicrescue 1.1.8-1.
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 | #!/usr/bin/env perl
use strict;
my $file = shift or die "Usage: script_rename.pl FILE\n";
open SCRIPT, "<", $file or die "Opening $file: $!\n";
my $line1 = <SCRIPT> or die "reading $file: $!\n";
close SCRIPT;
if ($line1 =~ m{^#![^ ]*?([^/ ]+)(?: |$)}) {
print "RENAME $1\n";
}
|