{"id":18887297,"url":"https://github.com/liberxue/mysqlfilechbrenamer","last_synced_at":"2026-04-12T02:33:06.475Z","repository":{"id":107563813,"uuid":"93472198","full_name":"Liberxue/mysqlfileCHBRenamer","owner":"Liberxue","description":"PERL SHELL batch modify Chinese database and server, Chinese file name, old system iteration","archived":false,"fork":false,"pushed_at":"2019-08-09T01:57:00.000Z","size":334,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T11:43:37.979Z","etag":null,"topics":["batch-conversion","china","chinese-translation","database","iteration","mysql","mysql-server","perl","shell"],"latest_commit_sha":null,"homepage":null,"language":"Perl 6","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Liberxue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-06T03:31:42.000Z","updated_at":"2023-04-11T15:20:41.000Z","dependencies_parsed_at":"2023-07-31T02:21:25.975Z","dependency_job_id":null,"html_url":"https://github.com/Liberxue/mysqlfileCHBRenamer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Liberxue/mysqlfileCHBRenamer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liberxue%2FmysqlfileCHBRenamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liberxue%2FmysqlfileCHBRenamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liberxue%2FmysqlfileCHBRenamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liberxue%2FmysqlfileCHBRenamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Liberxue","download_url":"https://codeload.github.com/Liberxue/mysqlfileCHBRenamer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liberxue%2FmysqlfileCHBRenamer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31702579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["batch-conversion","china","chinese-translation","database","iteration","mysql","mysql-server","perl","shell"],"created_at":"2024-11-08T07:36:17.345Z","updated_at":"2026-04-12T02:33:06.438Z","avatar_url":"https://github.com/Liberxue.png","language":"Perl 6","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mysqlfileCHBRenamer\nPERL SHELL batch modify Chinese database and server, Chinese file name, old system iteration\n![img](ui.png)\n```\nfind ./ -name '*.mp4' \u003emp4ls.txt\nopen( FH, \"mp4ls.txt\" ); #打开文件\nforeach $line ( \u003cFH\u003e ){ #循环读取文件\n$line =~ s/\\x0D?\\x0A?$//; #取得一行，去掉结尾换行符\n@datas = split(\" \",$line); #把空格当中分隔符，取得数据\n$dats[0]; #Steve\n$dats[1]; #Blenheim\n$dats[2]; #101\nrename $dats[0],`date +%Y%m%d`; \n}\n\n\n\n\nshell \nfind ./ -name '*.mp4' \u003emp4ls.txt\n\n\nshell版本//rename 要考虑文件名空格和各种括号\n\nfor line in $(cat mp4ls.txt)\ndo \n    echo \"File:${line}\"；\n  # mv ${line} $(date +%Y%m%d%s).mp4\ndone \u003e list2.txt\n\n\nperl ：无限制。。。\n\nmy @array = open FileHandle,'\u003cmp4ls.txt\u003e';\nmy $date = qx{date +\"%Y%m%d%s\"}. 'mp4';\nqx{mv $_ $date} for @array;\nclose FileHandle;\n i=$(($i+1))\n sleep 6\n\n额预热无语  飞速发 iu \n32423 。34553\n\n\n\nfor line in $(cat mp4ls.txt)\ndo \n    echo \"File:${line}\"；\n mysql -uroot -p123456 test -e \"UPDATE t_contents SET test = 'sdsfjkkjsdjfjs' WHERE filename=${line}\"\ndone \u003e list2.txt\n\n#listname 为原来文件名 listrename为修改后文件名\ncat list| awk 。 | while read platform  listname  listrename\ndo\n    echo $listname\"   \"$listrename\n     mysql -uroot -proot test -e \"UPDATE t_contents SET test = $listrename WHERE filename=$listname\"\ndone\n\n\n\n\nfor line in $(cat JPG.txt)\ndo \n    echo \"File:${line}\"；\n  # mv ${line} $(date +%Y%m%d%s).JPG\ndone \n\n\nwhile line in $(cat JPG.txt)\ndo \n    echo \"File:${line}\"；\n\ndone \n\n\nwhile read line  \ndo  \n  echo $line;  \n\n  \ndone \u003cJPG.txt\n\nfind ./ -name '*.JPG' \u003eJPG.txt。\n\n\n\u003e123.txt\n\ni=0;\n while read line  in $(cat JPG.txt)\n  do        \n         echo $line  \n          let i=i+1  \n  done\n #echo \"$i\"  \n\n\n\nmv ${line} $(date +%Y%m%d%s).JPG\n\n\n\n\n\n\n\n\n\n\nfor line in $(cat JPG.txt)\ndo \n    echo \"File:${line}\"；\n    mv  ${line} $(date \"\"+%Y%m%d%s).JPG\ndone\n\n\n\n\nfind ./ -name '*.JPG' \u003eJPG.txt\n\n\n\nfor line in `catmp4ls.txt`\ndo \n    echo \"File:${line}\"\ndone\n\n\n\n\nfor i in *.mp4;do mv $i $(sed \"s/.MP4/\" \u003c\u003c\u003c$i);done\n\n\n\nfor var in `ls *.mp4`; do mv \"$var\" `echo \"$var\" |awk -F  '{print $1 `date +%Y%m%d` $2}'`; done\n1\n\n\necho for var in `ls *.mp4`\n\n\nopen( FH, \"mp4ls.txt\" ); #打开文件\nforeach $line ( \u003cFH\u003e ){ #循环读取文件\n$line =~ s/\\x0D?\\x0A?$//; #取得一行，去掉结尾换行符\n@datas = split(\" \",$line); #把空格当中分隔符，取得数据\n$dats[0]; #Steve\n$dats[1]; #Blenheim\n$dats[2]; #101\n#接下来处理取得的数据\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliberxue%2Fmysqlfilechbrenamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliberxue%2Fmysqlfilechbrenamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliberxue%2Fmysqlfilechbrenamer/lists"}