How not to change the line after the bash team.

  • I' teammates. bash In the file, after that, I'm taking the next team to the same file. I want the result of the second conclusion to be recorded in the same line as the first one.

    For example: echo 123 > filedate >> file

    I'm gonna make it work. 123 Вт. дек. 8 14:17:39 MSK 2015

    The conclusion would be in a large body of the text, so the solution should not be universal for any line in the document.

  • man echo

    echo -n "123 " > file
    echo -n `date` >> file

Log in to reply

Suggested Topics