#!/bin/bash cnt=1 cd /home/gyx/watch || exit # set your watch directory here cat 1.txt|while read i do [[ "$i" =~ xt=urn:btih:([^&/]+) ]] || exit echo "d10:magnet-uri${#i}:${i}e" > "${cnt}.torrent" # name .torrent file by variable cnt cnt=$[cnt+1] done
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....