Reply to topic  [ 4 posts ] 
write NULL to a windows txt file 
Author Message
Has a life
User avatar

Joined: Sun May 17, 2009 12:21 pm
Posts: 93
Location: Newport, Shropshire
Reply with quote
All,
I can easily do the following in unix

Code:
echo -n "" > file


how would I achieve the same in windows?

regards

Alan

_________________
Image

Image Image


Thu Oct 22, 2009 2:23 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Reply with quote
You want the following:

Code:
echo. > text.txt

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Thu Oct 22, 2009 3:09 pm
Profile
Has a life
User avatar

Joined: Sun May 17, 2009 12:21 pm
Posts: 93
Location: Newport, Shropshire
Reply with quote
hi,
thats a good one, thanks

regards

Alan

_________________
Image

Image Image


Thu Oct 22, 2009 3:36 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Reply with quote
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???

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Thu Oct 22, 2009 4:25 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.