Skip to main content
added 46 characters in body
Source Link

I am trying to search for files with specific text but excluding a certain text and showing only the files.

Here is my code:

grep -v "TEXT1" *.* | grep -ils "ABC2" 

However, it returns: (standard input)

Please suggest. Thanks a lot.

The output should only show the filenames.

I am trying to search for files with specific text but excluding a certain text and showing only the files.

Here is my code:

grep -v "TEXT1" *.* | grep -ils "ABC2" 

However, it returns: (standard input)

Please suggest. Thanks a lot.

I am trying to search for files with specific text but excluding a certain text and showing only the files.

Here is my code:

grep -v "TEXT1" *.* | grep -ils "ABC2" 

However, it returns: (standard input)

Please suggest. Thanks a lot.

The output should only show the filenames.

improved readability
Source Link
anubhava
  • 790.3k
  • 67
  • 603
  • 671

I am trying to search for files with specific text but excluding a certain text and showing only the files.

Here is my code:

grep -v "TEXT1" *.* | grep -ils "ABC2"

grep -v "TEXT1" *.* | grep -ils "ABC2" 

However, it returns: (standard input)

Please suggest. Thanks a lot.

I am trying to search for files with specific text but excluding a certain text and showing only the files.

Here is my code:

grep -v "TEXT1" *.* | grep -ils "ABC2"

However, it returns: (standard input)

Please suggest. Thanks a lot.

I am trying to search for files with specific text but excluding a certain text and showing only the files.

Here is my code:

grep -v "TEXT1" *.* | grep -ils "ABC2" 

However, it returns: (standard input)

Please suggest. Thanks a lot.

I am trying to search for files with specific text but excluding a certain textand showtext and showing only the files.

Here is my code:

grep -v "TEXT1" . | grep -ils "ABC2"grep -v "TEXT1" *.* | grep -ils "ABC2"

However, it returns,: (standard input)(standard input)

Please suggest. Thanks a lot.

I am trying to search for files with specific text but excluding a certain textand show only the files.

Here is my code:

grep -v "TEXT1" . | grep -ils "ABC2"

However, it returns, (standard input)

Please suggest. Thanks a lot.

I am trying to search for files with specific text but excluding a certain text and showing only the files.

Here is my code:

grep -v "TEXT1" *.* | grep -ils "ABC2"

However, it returns: (standard input)

Please suggest. Thanks a lot.

Source Link
Loading