Find the answer to your Linux question:
Results 1 to 3 of 3
I am doing something for a class, and i have to list all the files in the users home directory, and i did a ls -F so the directories have ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    2

    removing things from a list

    I am doing something for a class, and i have to list all the files in the users home directory, and i did a ls -F so the directories have a / after them but i don't know how to remove them because i just want the files not the directories

    when I run the command i get
    Desktop/
    "file"

    i need the Desktop/ to go away

  2. #2
    Linux User
    Join Date
    Nov 2009
    Location
    France
    Posts
    292
    find <where> -type f
    0 + 1 = 1 != 2 <> 3 != 4 ...
    Until the camel can pass though the eye of the needle.

  3. #3
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    Home work questions are specificaly mentioned in the forum rules as being not acceptable. You should consult google, the man pages, the info pages, and your teacher for assistance with homework. The excercises are there to help you learn how to do things for yourself, you should use every resource available to you to get things done before seeking help from others.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

Posting Permissions

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