Find the answer to your Linux question:
Results 1 to 9 of 9
Using the ls command to list whats in a dirctory how can you select only Capital C or lower case c?...
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    12

    ls question

    Using the ls command to list whats in a dirctory how can you select only Capital C or lower case c?

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Try: ls {C,c}*

  3. #3
    Just Joined!
    Join Date
    Nov 2005
    Posts
    12
    That din't work the way I planned. I need it to what argument would you use with ls to show the C program files that do not begin with a capital-C?

  4. #4
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Instead of taking another (incorrect) stab at deciphering what you're asking for, could you provide clear examples of what you want to see?

  5. #5
    Just Joined!
    Join Date
    Nov 2005
    Posts
    12
    Sorry about that. I'm new to this. I need something like this

    what argument would you use with ls to show the C program files that do not begin with a capital-C? What command shows you the files that are not C files (i.e. do not end in .c)?

    appreciate the help.

  6. #6
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Is this a homework question?

    Regards

  7. #7
    Just Joined!
    Join Date
    Nov 2005
    Posts
    12
    Yes it is.

  8. #8
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Did you read the Forum Rules?

    http://www.linuxforums.org/forum/lin...ums-rules.html

    Regards

  9. #9
    Just Joined!
    Join Date
    Nov 2005
    Posts
    12
    Thanks for pointing out the rules. If you can't solve it or even give me a hint don't show me the rules. I've been on this forum long enough to know the rules. Also my questions is not to solve the questions its how to solve them using what I already know. I'm not asking anyone to do my homework. But thanks for helping.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...