I am having problems with >> and I have seen people use > but I don't know the difference.
I Google searched and went through all 45 results and all results were off topic. I even searched on here and no results about the difference.
CodePudding user response:
> overwrites a file, >> appends to the end of a file.
CodePudding user response:
Both operators create a new file, if it does not exist. If the file exists, there's a difference between > and >>:
In that case > replaces the existing file, whereas >> appends to the existing file.
