This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: dd garbled output
- From: Thomas Wolff <towo at towo dot net>
- To: cygwin at cygwin dot com
- Date: Sun, 11 May 2014 19:35:22 +0200
- Subject: Re: dd garbled output
- Authentication-results: sourceware.org; auth=none
- References: <CAAXzdLWOYqV1qvWtdovrLn5OYWHvgtyoc9Gyy2f2XSnAL_kyVQ at mail dot gmail dot com>
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