Skip to content

Commit 5da97e7

Browse files
committed
added comments
1 parent e3f2d56 commit 5da97e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

file_rename.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### THIS SCRIPT SEARCH ALL FILE EXTENSION WITH TXT AND WILL REPLACE NAME WITH SPACE
44

5-
search_files="*.txt"
5+
search_files="*.txt" # search file location of searching where you intent to replace filename
6+
67
find $1 -name "$search_files" -type f -print0 | \
78
while read -d $'\0' f; do mv -v "$f" "${f// /_}"; done

0 commit comments

Comments
 (0)