SyntaxFix
Write A Post
Hire A Developer
Questions
I using shell read all data file then assign to array. Then i move file in top position.
i=0 for file in /home/*.gz; do $file arr[i]=$file i=$((i+1)) done mv -f "${arr[0]}" /var/www/html/