17 lines
384 B
Bash
Executable File
17 lines
384 B
Bash
Executable File
#!/bin/bash
|
|
|
|
name=$1
|
|
tempfile=/tmp/fv_recs
|
|
|
|
|
|
svdrpsend.pl LSTR | grep -i $name | sed "s/^[0-9-]* //g" > $tempfile_1.tmp
|
|
|
|
cat $tempfile_1.tmp | awk '{for(i=3; i<NF; i++) printf("%s_",$i); printf("%s\n",$NF);} ' | sed "s/~/\//g" > $tempfile_2.tmp
|
|
|
|
for i in $(<$tempfile_2.tmp)
|
|
do
|
|
x=$(echo -n $i | sed "s/\r//g")
|
|
du -sh /video/$x | sed "s/\/video\///g"
|
|
done
|
|
|
|
#rm $tempfile_*.tmp |