Skip to content

Commit

Permalink
ls3: less sucky RE
Browse files Browse the repository at this point in the history
  • Loading branch information
trapd00r committed Jul 17, 2010
1 parent f1640b5 commit b3c21d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ls3
Expand Up @@ -5,7 +5,7 @@ open(my $ls, "ls -hAlv --group-directories-first --color=always @ARGV |") or die

my($perm,$nums,$user,$size,$month,$day,$time,$file) = undef;
while(<$ls>) {
m/^(.{10})\s+(\d+)\s+(.+)\s+([0-9\.KMGT]+)\s+([A-Za-z]{3})\s+([0-9]{2,})\s+([0-9]{2}:[0-9]{2})\s+(.+)/;
m/^(.{10})\s+(\d+)\s+(.+)\s+([0-9\.KMGT]+)\s+([A-Za-z]{3})\s+([0-9]{2})\s+([0-9]{2}:[0-9]{2})\s+(.+)/;
$perm = $1;
$nums = $2;
$user = $3;
Expand Down

0 comments on commit b3c21d0

Please sign in to comment.