I have A.js , B.js , C.js in a specific directory, and I want to write the SINGLE command line in the bash shell to rename these files _A, _B, _C. How can i do this?
I tried find -name '*.sh' | xargs -I file mv file basename file .sh find -name '*.sh' | xargs -I file mv file basename file .sh , but it does not work, the basename.sh file is not recognized as a nested command
source share