https://github.com/qw8880000/codesnippets
python,shell,batch脚本语言的代码片断
https://github.com/qw8880000/codesnippets
batch python shell
Last synced: 3 months ago
JSON representation
python,shell,batch脚本语言的代码片断
- Host: GitHub
- URL: https://github.com/qw8880000/codesnippets
- Owner: qw8880000
- License: mit
- Created: 2019-02-22T02:02:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-16T09:30:57.000Z (over 3 years ago)
- Last Synced: 2025-02-28T22:51:56.675Z (over 1 year ago)
- Topics: batch, python, shell
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeSnippets
# shell
- [ utf8_to_cp936.sh ](./shell/utf8_to_cp936.sh) - 把utf8编码的文件转换成cp936编码。
- [ get_rhel_info.sh ](./shell/get_rhel_info.sh) - 用来获取rhel主机信息
- [ port_check.sh ](./shell/port_check.sh) - 循环ssh到远程主机并使用nc命令进行端口连通性测试
- [ firewall_add_rich_rule.sh ](./shell/firewall_add_rich_rule.sh) - 循环ssh到远程主机配置firewall
- [ firewall_remove_rich_rule.sh ](./shell/firewall_remove_rich_rule.sh) - 循环ssh到远程主机清空 rich rules规则
- [ thread_count.sh ](./shell/thread_count.sh) - 进程数量统计
# python
- [ check_logfiles.py ](./python/check_files_exist.py) - 用来检查文件的每一行,判断是否包含某关键字。
- [ check_files_exist.py ](./python/check_files_exist.py) - 用来测试多个文件是否存在。
- [ ftp_client.py ](./python/ftp_client.py) - ftp客户端,用来上传和下载文件
- [ get_windows_info.py ](./python/get_windows_info.py) - 用来获取windwos主机信息
- [ get_windows_hotfix.py ](./python/get_windows_hotfix.py) - 获取windows补丁信息
# batch
- [ check_multi_ps.bat ](./batch/check_multi_ps.bat) - 检查进程是否存在。
- [ get_ip.bat ](./batch/get_ip.bat) - 获取系统IP。
- [ modify_file.bat ](./batch/modify_file.bat) - 修改文件内容。