I have a number of splitted rar files, eg.:
I need to add one 0 or NULL character at the end of every file.
I used the next command:
for i in "file*"; do sed -i '$s/$/0/' $i; done
but it's slow for large files (it read all content of files).
I tried to add the character NULL on those files with dd, but it works for one file/command line and I can't find a way to use wildcard with dd:
dd if=/dev/zero bs=1 count=1 >> 'file.part01.rar'
dd command works instantly even for a file with 1 GB size.
I need a command or a bash script that will add NULL character at the end of every file using dd command which is faster than sed.