Is there a shortcut in Shell/Bash that can rename all the files in a folder based on a regex or some other criteria. What I am looking for here is in my folder documents, that has let's say a 100 text files with the following naming convention:
<longdocumentidentifier>-doc-<counter>.txt.
I need to rename all the files with the above given convention to just:
doc-<counter>.txt
Is there a one-liner that can help me with the above?