Is there any way to append output(debugging information) to a existings file? As we all know in bash the command ‘>’ will write ouputs to a file.However this command will also erase the existing data it the file.
Of course bash provides a command that appends outputs to a file.It resembles ‘>’.It’s ‘>>’
The following is a piece of example code.
Let’s look at >
1 | [[email protected] tmp]$ touch a.txt |
Well,Let’s look at the exiciting command >>
1 | [[email protected] tmp]$ echo "GHI"[[email protected] tmp]$ cat a.txt |