zsh-users
 help / color / mirror / code / Atom feed
* I/O edirection and dd
@ 2016-04-24  9:53 Meino.Cramer
  2016-04-24 11:22 ` guyzmo
  2016-04-24 11:22 ` lilydjwg
  0 siblings, 2 replies; 4+ messages in thread
From: Meino.Cramer @ 2016-04-24  9:53 UTC (permalink / raw)
  To: zsh-users

Hi,

with the pipe

    cat verylongfile | dd count=512 | file -

I want to get the type of file without reading it completly.

Unfortunately dd and cat are very chatty and print something like:

512+0 records in
512+0 records out
262144 bytes (262 kB) copied, 0.00396828 s, 66.1 MB/s
"Here comes the wanted output of the file command'
[2]    32419 broken pipe  cat tmp.blend | 
       32420 done         dd count=512 | 
       32421 done         file -


I want to get rid of all that - except for the printout of the
'file' command.

I tried several permutations and combinations of '{}", "2>&1" and 
such but beside some additional syntax errors my success was very
....hrmmm....limited.

How can I acchieve what I want?

Thank you very much in advance for any help!

Best regards,
Meino





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-24 17:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-24  9:53 I/O edirection and dd Meino.Cramer
2016-04-24 11:22 ` guyzmo
2016-04-24 11:22 ` lilydjwg
2016-04-24 17:10   ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).