Yes, SRecord can perform calculations on the command line. To remove the last 4 bytes of an Intel Hex file using srec_cat, the command should be modified to:
"srec_cat infile -crop 0 -maximum-addr infile -srec_len Intel -o outfile -Intel -crop 0 -maximum-addr infile -4