我正在查看 AIX 框上的脚本,其中几行以 #@(#)
这说明什么?显然,对于符号进行 Google 搜索是完全徒劳的。
以下是脚本中的几行:
#!/usr/bin/ksh
#
#@(#)
#@(#) USAGE: dump_master_db [opts] SERVER [AREA]
#@(#) opts: -p PAGENAME : send Pages to PAGENAME rather than the default (usually database)
#@(#) -nodbcc : will not do the DBCCs before the dump
#@(#) -c COMPRESSION_LEVEL : dump the database at the stated compression level.
#@(#)
#@(#) This script will do some DBCCs, truncates the log and then dumps the master database on any SERVER
#@(#) The SERVER parm is …
Run Code Online (Sandbox Code Playgroud) 我有大量的脚本需要修改。每个脚本可能会调用 5 到 10 个其他脚本,这些脚本又可能会调用其他几个脚本,谁知道这个兔子洞有多深。
有没有办法获取特定脚本调用的脚本列表?
我在想这样的事情:
/home/root/ $ showscripts mytargetscript
Run Code Online (Sandbox Code Playgroud)
输出将类似于:
/home/root/mytargetscript
/home/root/asubscript
/home/root/bsubscript
...
Run Code Online (Sandbox Code Playgroud)
如果我冒犯了 Unix 诸神,我会提前忏悔。我在 dba.se 上回答了很多问题。