Extracting files from archives isn’t difficult, but it can be tedious. An easier way is to assemble a series of extraction commands into a script that calls the proper command to extract the content of file archives depending on the archive file names.
Source: LXer – Painless file extraction on Linux