|
Man /
ShredderContent-type: text/html shredderSection: User Commands (1)Index Return to Main Contents NAMEshredder - Extracts periodic chunks from a data stream.SYNOPSISshredder <offset> <chunksize> <space>DESCRIPTIONShredder makes an initial offset of offset bytes. It then reads and outputs chunksize bytes, skips space bytes, and repeats until there is no more input.If the chunksize is negative, chunks of size |chunksize| are read and the byte ordering of each chunk is reversed. The whole chunk will be reversed, so the chunk must be the same size as the data type, otherwise the order of the values in the chunk, as well as their endianness, will be reversed. EXAMPLESOutput every third double (8-byte) in the file test.Bdouble cat test.Bdouble | shredder 0 8 16 Extract and reverse the byte ordering of every third double (8-byte) cat test.Bdouble | shredder 0 -8 16 Extract and reverse byte ordering of values 0, 1, 4, 5, 8, 9... cat test.Bdouble | shredder 0 16 16 | shredder 0 -8 0 Output the doubles in positions 4, 7, 10, ..., 3i+4, ... cat test.Bdouble | shredder 32 8 16 Output as text just the Dxx entry of the diffusion tensor in each voxel for the diffusion-weighted data file A.Bfloat acquired using the acquisition scheme detailed in A.scheme: cat A.Bfloat | dtfit - A.scheme | shredder 16 8 56 | double2txt AUTHORSDaniel Alexander <camino@cs.ucl.ac.uk>SEE ALSOdouble2txt(1), float2txt(1), byte2txt(1), char2txt(1), short2txt(1), int2txt(1), long2txt(1).BUGS
IndexThis document was created by man2html, using the manual pages. Time: 02:07:11 GMT, December 04, 2017 |