Create text file and fill it using bash

前端 未结 5 695
一整个雨季
一整个雨季 2020-12-12 19:45

I need to create a text file (unless it already exists) and write a new line to the file all using bash.

I\'m sure it\'s simple, but could anyone explain this to me?

5条回答
  •  不知归路
    2020-12-12 19:55

    Your question is a a bit vague. This is a shell command that does what I think you want to do:

    echo >> name_of_file
    

提交回复
热议问题