Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8267033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:22:37+00:00 2026-06-08T05:22:37+00:00

ls -L | grep -v ^zip What i understand from this command is, it

  • 0
ls -L | grep -v ^zip

What i understand from this command is, it is doing a listing and piping the output to a grep command which performs grep on the received output file list to select any file with file name not containing text “zip” and any file with file name containing text “zip”.

If this is correct, then it seems useless or counter productive. Am i wrong somewhere?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T05:22:38+00:00Added an answer on June 8, 2026 at 5:22 am

    -v means “don’t match”, ^ is the beginning of a line:

    $ cat in.txt                
    foo
    zip
    bar
    --zip
    baz
     zip
    qux
    $ $ grep -v '^zip' < in.txt   
    foo
    bar
    --zip
    baz
     zip
    qux
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple grep command that returns lines that match from a file.
I grep this string from a SVG file: <g transform=translate(0.000000,980.000000) scale(0.100000,-0.100000) and I want
I have output from grep I'm trying to clean up that looks like: <words>Http://www.path.com/words</words>
I am using GNU grep on Windows 7 command prompt. I have a file
I've been using grep -f to obtain patterns from one file and extract lines
Can grep pick lines if at least one element from a list of words
I want to grep a particular string from a text file at some location
How do i search/ grep for a string only from the list of files
I need to grep the output of a third party program. This program dumps
grep -A1 'blah' logfile Thanks to this command for every line that has 'blah'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.