In this post, I demonstrate via a number of working example scripts how to manipulate binary files and data using Korn Shell 93. I also compare and contrast how binary data is stored internally by the Korn Shell and the Z Shell.
|
||
In this post, I demonstrate via a number of working example scripts how to manipulate binary files and data using Korn Shell 93. I also compare and contrast how binary data is stored internally by the Korn Shell and the Z Shell. Both bash and zsh shells support leading zeros in ranges: $ echo {1..10} 1 2 3 4 5 6 7 8 9 10 $ echo {01..10} 01 02 03 04 05 06 07 08 09 10 $ echo {001..010} 001 002 003 004 005 006 007 008 009 010 $ From the bash manpage section on brace expansion: Supplied integers may be prefixed with 0 to force each term to have the same width. When either x or y begins with a zero, the shell attempts to force all generated terms to contain the same number of digits, zero-padding where |
||
Copyright © 2007-2023 Finnbarr P. Murphy. All Rights Reserved |