Thursday, 15 January 2015

bash - Git - how to rename many folders? -



bash - Git - how to rename many folders? -

i know command ls-files generates list of files can utilize in loop filter , rename files, command directories? i'm trying append string "-dcmp" directory names in project.

there's no particular reason git, rather usual bash tools. specifically, utilize find, myself, since it's tool i'm used using doing similar things many different files:

$ find . -name .git -prune -or -type d -exec git mv '{}'{,-dcmp} \;

git bash rename

No comments:

Post a Comment