4 corrected example
source | link

I have a folder structure like this:

/client1ms/files/a/
/client2fb/files/a/
/client3db/files/a/

It should be like this:

/client1ms/files/b/
/client2fb/files/b/
/client3db/files/b/

I can find the folders I need to move or rename using

find . -path "*/files/a" -type d

But how do I rename the results?

I have a folder structure like this:

/client1/files/a/
/client2/files/a/
/client3/files/a/

It should be like this:

/client1/files/b/
/client2/files/b/
/client3/files/b/

I can find the folders I need to move or rename using

find . -path "*/files/a" -type d

But how do I rename the results?

I have a folder structure like this:

/ms/files/a/
/fb/files/a/
/db/files/a/

It should be like this:

/ms/files/b/
/fb/files/b/
/db/files/b/

I can find the folders I need to move or rename using

find . -path "*/files/a" -type d

But how do I rename the results?

3 edited tags
| link
2 typo
source | link

I have a folder structure like this:

/client1/files/a/
/client2/files/a/
/client3/files/a/

It should be like this:

/client1/files/b/
/client2/files/b/
/client3/files/bab/

I can find the folders I need to move or rename using

find . -path "*/files/a" -type d

But how do I rename the results?

I have a folder structure like this:

/client1/files/a/
/client2/files/a/
/client3/files/a/

It should be like this:

/client1/files/b/
/client2/files/b/
/client3/files/ba/

I can find the folders I need to move or rename using

find . -path "*/files/a" -type d

But how do I rename the results?

I have a folder structure like this:

/client1/files/a/
/client2/files/a/
/client3/files/a/

It should be like this:

/client1/files/b/
/client2/files/b/
/client3/files/b/

I can find the folders I need to move or rename using

find . -path "*/files/a" -type d

But how do I rename the results?

1
source | link