Guest User

Untitled

a guest
Apr 27th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. using System.IO;
  4. using System.Text.RegularExpressions;
  5.  
  6. class Program {
  7. static void Main(string[] args) {
  8. var usefulProjection_ = new Regex("[1-9]");
  9. args.SelectMany(s => File.ReadAllLines(s)).
  10. Where(s => usefulProjection_.IsMatch(s)).ToList().
  11. ForEach(s => Console.WriteLine(s));
  12. }
  13. }
Add Comment
Please, Sign In to add comment