Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Help with a script

    Hi there I have been trying to answer this question but am having difficulty finding the right commands. If anyone can give tips or hints it would be gratefully appreciated.

    " Write a script that provides a file, "MyFiles", that contains a list of all teh files in the current directory and displays on the screen the number of files present in teh current directory. "


  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    St. Petersburg, FL
    You are not supposed to ask us to do your homework for you, especially when it's such a trivial matter as this.
    [hint]pipe ls

  3. #3
    Just Joined!
    Join Date
    Jun 2004
    London, UK
    A few pointers.

    You basically need two commands, ls and wc.

    Read the man-pages and I'm sure you can figure it out.

    Perahsp you can even do it with one commmand.

  4. $spacer_open

Posting Permissions

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