- 论坛徽章:
- 0
|
原帖由 hgyxb 於 2009-8-2 13:42 發表
因為我在hp-ux和sunos上都可以使用what命令來查看文件版本
在linux上卻沒有此命令
我用的是ubuntu8.04
- NAME
- what - extract SCCS version information from a file
- SYNOPSIS
- what [-s] filename...
- DESCRIPTION
- The what utility searches each filename for occurrences of
- the pattern @(#) that the SCCS get command (see sccs-get(1))
- substitutes for the @(#) ID keyword, and prints what follows
- up to a ", >, NEWLINE, \, or NULL character.
- OPTIONS
- The following option is supported:
- -s Stops after the first occurrence of the pattern.
- EXAMPLES
- Example 1 Extracting SCCS version information
- If a C program in file program.c contains
- char sccsid[] = "@(#)identification information";
- and program.c is compiled to yield program.o and a.out, the
- command:
- example% what program.c program.o a.out
- produces:
- program.c: identification information
复制代码
腦袋中是沒有這類應對命令~ |
|