Finally mananged to get something useful from ChatGPT: it helped me to change a provided set of commands (containing find, xargs, awk etc), make a new command that does what I need. Otherwise, I would spend hours making sense from what I found in Google