We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 476e64a commit f687c75Copy full SHA for f687c75
tools/dev.md
@@ -122,6 +122,12 @@ To move directories from one directory to another directory,
122
$ find $PWD/path/to/parent/directory -type d -depth 1 -regex ".*" | while read -r dir; do mv "${dir}" "$PWD/path/to/parent/destination/directory/$(basename ${dir})"; done
123
```
124
125
+To rename multiple directories using a pattern,
126
+
127
+``` bash
128
+$ find $PWD/path/to/parent/directory -type d -depth 1 -regex ".*" | while read -r dir; do mv "${dir}" "$PWD/path/to/parent/destination/directory/`echo $(basename ${dir}) | sed s/search/replace/`"; done
129
+```
130
131
</section>
132
133
<!-- /.notes -->
0 commit comments