Add/Redesign scripts for creating/dropping databases
This commit is contained in:
14
utils/move_database.txt-files.sh
Executable file
14
utils/move_database.txt-files.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
src_dir=/root
|
||||
dst_dir="/root/bin/mysql/databases"
|
||||
|
||||
while IFS='' read -r -d '' _file || [[ -n $_file ]] ; do
|
||||
mv "$_file" "${dst_dir}/${_file##*.}"
|
||||
done < <(find "$src_dir" -maxdepth 1 -type f -name "databases.txt.*" -print0)
|
||||
|
||||
#while read -r _file ; do
|
||||
# mv "$_file" "${dst_dir}/${_file##*.}"
|
||||
#done < <(find "$src_dir" -maxdepth 1 -type f -name "databases.txt.*")
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user