News for hackers. Stuff that matters.
Re:The Beauty of Unix Pipelines by jrumbut on Thursday June 04, 2020 @06:16PM (#23422632)
Also dd, which may be the disk destroyer but is also a great tool for binary file miracles.

See one here: https://unix.stackexchange.com/questions/6852/best-way-to-re...

Re:The Beauty of Unix Pipelines by dredmorbius on Thursday June 04, 2020 @08:00PM (#23423491)
"data definition", from MVS JCL.

https://news.ycombinator.com/user?id=dredmorbius

Re:The Beauty of Unix Pipelines by mjevans on Thursday June 04, 2020 @08:54PM (#23423885)
I recall hearing conjecture that cc was already a routine, and that "copy and convert" became dd as a result in a really old system that may have been pre-unix.

Researching, it appears that there are multiple attributions, because it's just that obvious and necessary a routine.

https://www2.cs.duke.edu/csl/docs/unix_course/intro-98.html

https://unix.stackexchange.com/questions/6804/what-does-dd-s...

https://en.wikipedia.org/wiki/Dd_(Unix)

Re:The Beauty of Unix Pipelines by jrumbut on Friday June 05, 2020 @06:17AM (#23426911)
Yeah disk destroyer or data deleter or whatever is the old joke, not it's actual name. For those unaware, dd has often been used for stuff like overwriting a file with random noise as a homespun secure delete function, and it can do a lot of damage with small typos in the command.

Could have used a \s or something to clarify.

Re:The Beauty of Unix Pipelines by laumars on Friday June 05, 2020 @03:25AM (#23425932)
dd doesn’t example byte stream pipelines though ;)

But yes, that’s the typical file / block management tool. Just remember to set a block size otherwise you’d suffer from worse performance than using cat

Re:The Beauty of Unix Pipelines by jrumbut on Friday June 05, 2020 @06:15AM (#23426899)
You're right! I was planning to tell a story about some bulk file changes using dd, but then I saw it was a giant "you had to be there" story so I posted with half a context.