#TIL #batch #bash redirection 연산자를 앞으로 당겨도 되잖아

 >result.txt echo first line
>>result.txt echo second line
>>result.txt echo third line

이렇게 써도 되다니. 칼각에 마음이 평온해진다. batch, bash 모두 된다. 자연스럽게 공백 방지도 된다.

참고 - The redirection can come anywhere on the line, and you can use that to get rid of the spaces - The Old New Thing

Feedback plz <3 @ohyecloudy, ohyecloudy@gmail.com

A Random Post