Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
I/O edirection and dd
- X-seq: zsh-users 21483
- From: Meino.Cramer@xxxxxx
- To: zsh-users@xxxxxxx
- Subject: I/O edirection and dd
- Date: Sun, 24 Apr 2016 11:53:42 +0200
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author