Guest User

Untitled

a guest
Jan 13th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.31 KB | None | 0 0
  1. #!perl -w
  2. # parse /etc/passwd file with no new line symbols (one line file)
  3. # by motzi (s7ick.org)
  4.  
  5. my $lol;
  6. open fail, '<passwd.txt' or die($!);
  7. while(<fail>)
  8. {
  9.  $lol .= $_;
  10. }
  11. close fail;
  12. my @fuck = $lol =~ /([^:\s]+:[^:\s]+:[^:\s]+:[^:\s]+:[^:\/]+:[^:]+:[^:]+)\s/g;
  13. foreach(@fuck)
  14. {
  15.  print "$_\n";
  16. }
Add Comment
Please, Sign In to add comment