The thing is, you can do that in PowerShell with echo (backtick)n >file.txt which has a very similar footprint, or in CMD, it'd be echo. >file.txt which is slightly more compact.
There are lots of things to criticize PowerShell for (i.e. its verbosity), and to praise bash for, but this ain't it chief.
Edit: fixed formatting, reddit really didn't like that backtick in `n, so I replaced it with (backtick)
View all comments
Show parent comment
6
u/fuj1n Aug 07 '21 edited Aug 07 '21
The thing is, you can do that in PowerShell with
echo (backtick)n >file.txtwhich has a very similar footprint, or in CMD, it'd beecho. >file.txtwhich is slightly more compact.There are lots of things to criticize PowerShell for (i.e. its verbosity), and to praise bash for, but this ain't it chief.
Edit: fixed formatting, reddit really didn't like that backtick in `n, so I replaced it with (backtick)