Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: I/O edirection and dd



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