Last active
          December 15, 2015 12:29 
        
      - 
      
- 
        Save keedi/5260793 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env perl | |
| use 5.010; | |
| use utf8; | |
| use strict; | |
| use warnings; | |
| # while <> 구문은 표준입력 또는 명령줄 인자를 | |
| # 파일로해서 모든 컨텐츠를 줄단위로 받아들임 | |
| while (<>) { | |
| # 기본적인 필터링: (숫자)bps 가 아닌 줄은 통과 하도록 함 | |
| next unless /\((\d+)\)bps/; | |
| # 정규 표현식에 의해 첫번째로 저장된 \d+ 값은 $1에 저장되므로 출력함 | |
| say $1; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment