#!/bin/bash statsfile="/tmp/torrentflux.stats" if [ -e $statsfile ] then if [ -n "$1" ] then O=$IFS IFS=$'\n' arrfile=($(< "$statsfile")) IFS=$O echo "${arrfile[$1]}" fi else echo "" fi exit 0