dd garbled output
Thomas Wolff
towo@towo.net
Sun May 11 17:35:00 GMT 2014
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
More information about the Cygwin
mailing list