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


what

what [option ] files

Search files for the pattern @(#) and print the text that follows it. (Typically, files are binary executables.) Actually, the pattern searched for is the value of %Z% , but the get command expands this keyword to @(#) . The main purpose of what is to print identification strings.

Option

-s

Quit after finding the first occurrence of a pattern.


Previous: Reference: val UNIX in a Nutshell: System V Edition Next: 18.6 Alphabetical Summary of SCCS Commands
Reference: val Book Index 18.6 Alphabetical Summary of SCCS Commands

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