I have to repeat this command a lot of times a day, is there any way to execute it multiple times (aprox. 25 times)

cd ../folderName && ../../tools/clone.py

What I need to do is execute the clone script inside every folder I specify.

  • Wat exactly do you want? You can define an alias. – RalfFriedl Jul 5 at 17:02
  • What I need to do is: execute the clone script inside each folder I specify – Mateo Gutierrez Jul 5 at 17:06
  • 1
    So what is wrong with defining an alias or a function? – RalfFriedl Jul 5 at 17:08

Add this to your shell profile or just try this one:

myclone () { cd $1; /full/path/to/clone.py }

And you can do

myclone ../folderName

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.