Last active
          June 27, 2016 16:44 
        
      - 
      
- 
        Save Swarchal/ceb3776d09f28f6ca9eb073de2ebc77a to your computer and use it in GitHub Desktop. 
    remove lines containing string
  
        
  
    
      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
    
  
  
    
  | sed '/string to match/d' ./file_to_remove_from.txt > output_file.txt | 
  
    
      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
    
  
  
    
  | grep -v "string to match" file_to_remove_from.txt > output.txt | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment