Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I'm trying to add a word at the end of a file that already contains data. I need to do it using a single command without human interaction cause ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    4

    [SOLVED] How to add a word at the end of a file


    Hi,
    I'm trying to add a word at the end of a file that already contains data. I need to do it using a single command without human interaction cause it's gonna be part of an automatic script.
    Thanks for your help

  2. #2
    Linux User Manko10's Avatar
    Join Date
    Sep 2010
    Posts
    250
    Code:
    echo 'some text' >> myfile

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    4
    It works fine,
    Thanks a lot

Posting Permissions

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