Thread: How to list specific files in terminal

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    How to list specific files in terminal

    How do you list only specific files in the terminal window. I know that ls lists all files, but how do you list only specific types, for example, with .out ending. Thanks

  2. #2
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    " ls *.out " should do I guess.. (in linux)
    In the middle of difficulty, lies opportunity

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    3
    Yeah it works, thanks.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Not a C question, it's a how to use a unix shell question. Moved.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help sorting a linked list. Beginner
    By scarlet00014 in forum C Programming
    Replies: 1
    Last Post: 09-27-2008, 06:16 PM
  2. Pleas take a look & give a critique
    By sh3rpa in forum C++ Programming
    Replies: 14
    Last Post: 10-19-2007, 10:01 PM
  3. Reverse function for linked list
    By Brigs76 in forum C++ Programming
    Replies: 1
    Last Post: 10-25-2006, 10:01 AM
  4. instantiated from here: errors...
    By advocation in forum C++ Programming
    Replies: 5
    Last Post: 03-27-2005, 09:01 AM
  5. problem with structures and linked list
    By Gkitty in forum C Programming
    Replies: 6
    Last Post: 12-12-2002, 06:40 PM