Find the answer to your Linux question:
Results 1 to 2 of 2
i have text file is ("test.txt") on linux fedora core system. ####### inside text file ######## 12345 56789 101112 condition 1. i want to add line into text.txt in the ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    84

    text file command Help me!!! please

    i have text file is ("test.txt") on linux fedora core system.

    ####### inside text file ########
    12345
    56789
    101112


    condition
    1. i want to add line into text.txt in the line tail that but without to open text editor such as nono,pico
    2. i try to user "echo 555555 > text.txt" it's not working . because old data that missing.
    3. and command line to add line it that need standard command line on linux.

    ####### inside text file ########
    12345
    56789
    101112
    555555 <<-- new line (i want to add this line without open text editor)

    *** if you can use command fix and condition to adding line include line number that very very thanks.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Code:
    echo 555555 >> test.txt
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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