Advertisement
gewur33

Untitled

Dec 28th, 2014
3,412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Per 0.25 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3.  
  4. open (FH, $ARGV[0]);
  5. while(my $w = <FH>) {
  6.     my @matches = $w =~ m/(\d{1,2}\.\d{1,2}\.\d{4})(\t{1,2})(\d)/g;
  7.     print($1 . " " . $3 . "\n");
  8. }
  9.  
  10. __DATA__
  11. 1.1.2003    4       2.4.2085    7       2.1.2054    6
  12. 2.1.2054    6       2.1.2054    6       2.1.2054    6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement