x404.co.uk
http://x404.co.uk/forum/

write NULL to a windows txt file
http://x404.co.uk/forum/viewtopic.php?f=4&t=3589
Page 1 of 1

Author:  alanm [ Thu Oct 22, 2009 2:23 pm ]
Post subject:  write NULL to a windows txt file

All,
I can easily do the following in unix

Code:
echo -n "" > file


how would I achieve the same in windows?

regards

Alan

Author:  EddArmitage [ Thu Oct 22, 2009 3:09 pm ]
Post subject:  Re: write NULL to a windows txt file

You want the following:

Code:
echo. > text.txt

Author:  alanm [ Thu Oct 22, 2009 3:36 pm ]
Post subject:  Re: write NULL to a windows txt file

hi,
thats a good one, thanks

regards

Alan

Author:  EddArmitage [ Thu Oct 22, 2009 4:25 pm ]
Post subject:  Re: write NULL to a windows txt file

No problem. Who'd've thunk it'd be so difficult to work out what arguments you need to pass to something as trivial as echo? Took me a good few minutes of slacking off work to find! Surely M$ should just use the GNU implementation, or at least something identical from a blackbox point of view???

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/