You can directly run a loop from the command line instead of running command repeatedly or writing a shell script.
For example to untar all files from the home folder as follows.
For example to untar all files from the home folder as follows.
for i in ls ~/home/*.tar ; do tar -xvf $i ; done