What is the what command on AIX under LINUX

I use what needs to be found in my program in a line, which is usually defined as a line in C ++ code, starting with "@ (#)".

Now I can not find it on Linux. Can someone tell me what I should do? Many thanks!

+3
source share
5 answers

The command whatis part of the source code management system (SCCS), which is usually not available on Linux (if there is a version of Linux at all). You can try to emulate it with the command strings:

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

what CSSC ( SCCS-to-modern) BSD ( ).

+5

strings myprogram | grep '@('
+1

@larsmans, what SCCS. GNU SCCS

+1

SCCS, ident RCS ( , , RCS, CVS ).

0

The following command gives the most equivalent output compared to the           string file_name | grep -o \ "\" @ (#). * \ "\" | sed 's / ^ \ "@ (#) //' | sed 's / \" $ //'

0
source

Source: https://habr.com/ru/post/1773589/