Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the 'what' command on AIX under LINUX

I am used to use what to find out some version string in my program, which is normal defined as a string in the c++ code, starting with "@(#)".

Now I cannot find it in Linux. Can anyone tell me what I am supposed to do? Thanks a lot!

like image 515
Orunner Avatar asked Nov 08 '10 10:11

Orunner


1 Answers

The what command is part of the Source Code Control System (SCCS), which is not commonly available on Linux (if there is a Linux version at all). You can try to emulate it with the strings command:

strings a.out | fgrep '@(#)'

Reimplementations of what are available in CSSC (an SCCS-to-modern version control conversion package) and in BSD (source code).

like image 81
Fred Foo Avatar answered Oct 05 '22 07:10

Fred Foo