home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX Power Tools

UNIX Power ToolsSearch this book
Previous: 19.2 Introduction to Shell Archives Chapter 19
Creating and Reading Archives
Next: 19.4 A Simple Version of unshar
 

19.3 unshar: Unarchive a Shell Archive

Article 19.2 explained how to extract files from a shell archive by executing it as a shell script with sh . There are a few drawbacks to this. One of them is that shar files are often sent through email, and have an email header ahead of shell commands. One can strip out the header manually after saving the file - but why bother?

shar
The unshar program, which is distributed with shar on the CD-ROM, is more intelligent about ignoring leading garbage and checking out the shar file for problems.

- TOR


Previous: 19.2 Introduction to Shell Archives UNIX Power Tools Next: 19.4 A Simple Version of unshar
19.2 Introduction to Shell Archives Book Index 19.4 A Simple Version of unshar

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System