Skip to content

Commit

Permalink
files.pl: allow dash
Browse files Browse the repository at this point in the history
  • Loading branch information
brendangregg committed Feb 5, 2017
1 parent a30ac04 commit 640143c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files.pl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sub wanted {
my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size) = stat($_);
my $path = $File::Find::name;
$path =~ tr/\//;/; # delimiter
$path =~ tr/;.a-zA-Z0-9/_/c; # ditch whitespace and other chars
$path =~ tr/;.a-zA-Z0-9-/_/c; # ditch whitespace and other chars
$path =~ s/^;//;
print "$path $size\n";
}

0 comments on commit 640143c

Please sign in to comment.