This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dd garbled output



Am 11.05.2014 09:17, schrieb Steven Penny:
Using this file

     $ cat file.txt
     hello
     doge
     world

I can run this command

     $ grep -v doge file.txt | dd conv=notrunc of=file.txt

and get output as expected

     $ cat file.txt
     hello
     world

However with Cygwin the end result is garbled
No, it's not.
     $ cat infile.txt
     hello
     world
     orld

What is causing this?
Obviously, you had some content in file.txt before and *as you requested* (conv=notrunc, read the manual) dd did not overwrite that but only filled in its output at the beginning of the file.


---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]