The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Search a list of lines in file into files sriram003 UNIX for Advanced & Expert Users 2 05-20-2008 04:23 AM
Counting files in a directory that match a pattern dsravan Shell Programming and Scripting 31 07-24-2006 08:12 AM
Search a string from list of input files sivakumarvenkat UNIX for Dummies Questions & Answers 2 03-08-2006 02:08 PM
search all files for a pattern ynaik002 UNIX for Dummies Questions & Answers 4 02-23-2006 11:51 AM
List files that do not match the search pattern olapxpert UNIX for Dummies Questions & Answers 7 04-14-2005 12:49 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-14-2005
Registered User
 

Join Date: Apr 2005
Posts: 5
Question List files that do not match the search pattern

I need to list the files that do not match the search pattern:

Example:
cat file1
This is how it should work

cat file2
This is why I like Unix

grep -option? Unix * (or some other command)
returns file1
Forum Sponsor
  #2 (permalink)  
Old 04-14-2005
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 2,999
man grep

grep -vl Unix *
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0