09 2022 档案

摘要:以下函数为Cygwin或MSYS2下调用Windows版本的ffmpeg,故使用了cygpath转换Windows和Linux二者的路径参数,如果需要在其他平台下运行,需要调整相关路径转换规则 支持测试 http、https、rtmp、rtsp、rtp格式的连接地址; ffmpeg-test函数代码 阅读全文
posted @ 2022-09-29 12:52 晴云孤魂 阅读(153) 评论(0) 推荐(0) 编辑
摘要:函数代码: 加入会话配置文件(/etc/profile、~/.bash_profile etc...)即可在交互式终端调用: rename() { #优化renname命令,使其支持类似CMD下`ren *.txt *.mp3`类似的操作 #更改文件拓展名快速操作: #为避免通配符展开,使用本函数时 阅读全文
posted @ 2022-09-15 22:41 晴云孤魂 阅读(94) 评论(0) 推荐(0) 编辑
摘要:使用帮助: $ ssh-tar-dir --help ssh-tar-dir|ssh-backup-dir: 通过ssh调用远程tar命令,压缩备份服务器某个路径文件夹到本地(通过管道传输压缩数据流); 底层调用命令形似: ssh 'cd /path/to/dir;tar -zxvf - xxxx' 阅读全文
posted @ 2022-09-14 01:11 晴云孤魂 阅读(187) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示