Find the answer to your Linux question:
Page 4 of 4 FirstFirst 1 2 3 4
Results 31 to 34 of 34
Yeah I agree, I definately need to download it. I'm unable to download though at the minute and wont be able to until Monday of next week. I aren't sure ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #31
    Just Joined!
    Join Date
    Oct 2005
    Posts
    23

    Yeah I agree, I definately need to download it. I'm unable to download though at the minute and wont be able to until Monday of next week.

    I aren't sure if I understand what you mean by "conjunction".

    So right now I have:

    #!/bin/sh
    mv *.txt TxtFiles
    ls > TxtFilesMoved

    So the directory it's wanting to list is TxtFiles I think I called it.

    Should this therefore work do you think? :


    #!/bin/sh
    mv *.txt TxtFiles
    ls TxtFiles > TxtFilesMoved




    I think that'd work.

  2. #32
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Yup.
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #33
    Just Joined!
    Join Date
    Oct 2005
    Posts
    23
    Fantastic

    Alright, thanks A LOT for the help. Hopefully I wont be bothering you anymore from now on.

  4. #34
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    Incidentally, if you've only got a single file to count the lines of you don't need to use cat:
    Code:
    cat Files | wc -l
    can be more efficiently coded as:
    Code:
    wc -l <Files
    Using the input stream redirector stops wc from knowing the filename, so it just outputs the count.

Page 4 of 4 FirstFirst 1 2 3 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
  •