Can anyone help me with a command for Linux (CentOS):
I have different directories, say:
/01
/02
/03
/04
Each directory has files of different extension.
I want a command wich I can run from 1 directory higher, to check al these subdirs for files with extension .zip for example and add a prefix to these filenames (for example “cyberbomb_filename01.zip”). If the prefix “cyberbomb_” already exists, it should not be added…
Does anyone have a 1-line solution for me ?
Thank you very much !
p.s. I hope this is in the right board, if not, please move me