Skip to main content
deleted 7 characters in body; edited title
Source Link
Brian Dant
  • 1k
  • 2
  • 10
  • 15

What's the easiestquickest way to add text to a file from the command line?

Occasionally I have a thought or note that I want to dumpwrite into a file while I am at the terminal. I would want these notes all in the same file, just listed one after the other. I would also like a date / time tag on each one.

Is it possible to do this without having to open the file each time? Can I just enter it into the terminal and have it appended to the file each time with a command or script?

I am using GNU BASH.

What's the easiest way to add text to a file from the command line?

Occasionally I have a thought or note that I want to dump into a file while I am at the terminal. I would want these notes all in the same file, just listed one after the other. I would also like a date / time tag on each one.

Is it possible to do this without having to open the file each time? Can I just enter it into the terminal and have it appended to the file each time with a command or script?

I am using GNU BASH.

What's the quickest way to add text to a file from the command line?

Occasionally I have a thought that I want to write into a file while I am at the terminal. I would want these notes all in the same file, just listed one after the other. I would also like a date / time tag on each one.

Is it possible to do this without having to open the file each time? Can I just enter it into the terminal and have it appended to the file each time with a command or script?

I am using GNU BASH.

Tweeted twitter.com/#!/StackUnix/status/162814328431579136
Source Link
Brian Dant
  • 1k
  • 2
  • 10
  • 15

What's the easiest way to add text to a file from the command line?

Occasionally I have a thought or note that I want to dump into a file while I am at the terminal. I would want these notes all in the same file, just listed one after the other. I would also like a date / time tag on each one.

Is it possible to do this without having to open the file each time? Can I just enter it into the terminal and have it appended to the file each time with a command or script?

I am using GNU BASH.