#!/bin/bash for i in `ls -1 /home/keksz/torrent3/`; do /home/keksz/rtorrent_fast_resume.pl /home/keksz/seed < /home/keksz/torrent3/$i > /home/keksz/torrent/$i; done rm /home/keksz/torrent3/*