Из командной строки:
sudo tar -xzf /path/to/downloaded/file.gz -C /usr/share/themes
#! /bin/bash
offset='17218'
for i in {1..5}
do
start=$((offset+i*174))
end=$((offset+i*174+173))
cat >File-$i<<!
Line1
for j in {${start}..${end}}
Line3
Line4
!
done