How to list specific files in terminal

This is a discussion on How to list specific files in terminal within the Tech Board forums, part of the Community Boards category; How do you list only specific files in the terminal window. I know that ls lists all files, but how ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,592
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 08:01 AM
  5. problem with structures and linked list
    By Gkitty in forum C Programming
    Replies: 6
    Last Post: 12-12-2002, 05:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21