Find the answer to your Linux question:
Results 1 to 2 of 2
what's command line can to add text line to text file. i use "echo 5555 >> text.t" but that command line add text tail only. How to fix line number ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    84

    command line add text to text file.!!!

    what's command line can to add text line to text file.

    i use "echo 5555 >> text.t"

    but that command line add text tail only. How to fix line number to add such as line 20 or line 30 .

  2. #2
    Just Joined!
    Join Date
    Jan 2009
    Posts
    1
    if you want to add text to a already existing file you do


    cat >>(file name) and hit enter, you'll go to the next row where you type your information and hit enter again then ctr +d when your finished.

    Hope this helps

Posting Permissions

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