Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: I/O edirection and dd
- X-seq: zsh-users 21486
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: I/O edirection and dd
- Date: Sun, 24 Apr 2016 10:10:52 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=OvJw3cAnEuE5uAcOxIUzbdSBZTxikjVr8NOLoBvXBaE=; b=NqMZJmNxEZTdgJIn4dmf7tG8+hhPV7NrIKj29RyuWwMBcZCCKJdm6oGdmd9Rg3mJqp 1LelD0+TU/tHa9zgI7+Du4SB+sfyNmS1JpiDJPRV5gvtsRZPaJptEzPWjaX3JwkY30Rr QARL06nCVQY6OVx2c0Hjog/oHE0iprIKXvmsT9ZuTYF/LJxOEUHnVnoEodztlk317n1q SgypPLhIqfSXBZ5FyCXNC4z2KME81hRk0aRdI7c9BBfwkqSA2N6icF5bO/IZAHbK7ct9 nGeEV03enOAHdRGeQO14cSfrR+BHjy52Ch8hzy+3FiO6SNWsKFiz+3bsYfOShZ26TieQ cI6Q==
- In-reply-to: <20160424112209.GA20670@lilyforest.localdomain>
- 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
- References: <20160424095342.GA11812@solfire> <20160424112209.GA20670@lilyforest.localdomain>
On Apr 24, 7:22pm, lilydjwg wrote:
} Subject: Re: I/O edirection and dd
}
} On Sun, Apr 24, 2016 at 11:53:42AM +0200, Meino.Cramer@xxxxxx wrote:
} >
} > cat verylongfile | dd count=512 | file -
}
} Why don't you let file read the file itself? file won't read the entire
} file.
Indeed, if you check /etc/magic or /usr/share/file/magic (location should
be explained in "man file") you'll find that the number of bytes needed
is listed for most file types. (Encrypted ZIPs may need to read 75kb,
for one example from my system.)
--
Barton E. Schaefer
Messages sorted by:
Reverse Date,
Date,
Thread,
Author