On 30/12/2020 1:12 am, R.S. wrote:
This is even simpler tool, maybe it address rare need - just to truncate first nnn bytes from beginning of file
Possible usage:
truncfile -header -12384 ifile ofile
truncates/deletes header, which is 12384 bytes long, the output is written to ofile. Ofile is shorter than ifile, the difference is 12384 bytes. No CR/LF issues, just byte after byte.


On Windows install you can WSL and use Linux tools. Or use Powershell and do something similar. I don't use Powershell that often and have to study to find a bash analog but it's simple using Linux.

tail -c +12385 ifile | iconv -f ibm-1047 -t utf-8 >> ofile

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to