From 684243482c90b55e77388433e259497bc0a6b82e Mon Sep 17 00:00:00 2001 From: marc Date: Sat, 12 Sep 2009 18:27:05 +0200 Subject: [PATCH] ? und : umcodieren --- fv | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/fv b/fv index 3623a5a..9ef951d 100755 --- a/fv +++ b/fv @@ -1,16 +1,20 @@ #!/bin/bash +#set -x + name=$1 tempfile=/tmp/fv_recs -svdrpsend.pl LSTR | grep -i $name | sed "s/^[0-9-]* //g" > $tempfile_1.tmp +svdrpsend.pl LSTR | grep -i $name | sed "s/^[0-9-]* //g" > ${tempfile}_1.tmp -cat $tempfile_1.tmp | awk '{for(i=3; i $tempfile_2.tmp +#cat ${tempfile}_1.tmp -for i in $(<$tempfile_2.tmp) +cat ${tempfile}_1.tmp | awk '{for(i=3; i ${tempfile}_2.tmp + +for i in $(<${tempfile}_2.tmp) do - x=$(echo -n $i | sed "s/\r//g") + x=$(echo -n $i | sed "s/\r//g" | sed "s/:/#3A/g" | sed "s/\?/#3F/") du -sh /video/$x | sed "s/\/video\///g" done