#!/bin/bash
cd /home/downloads/Converted/
for f in *;do rsync -auvzH $f /home/audio/ogg/$(echo $f | sed 's/.oggvorbis//') && rm $f; done



syntax highlighted by Code2HTML, v. 0.9.1