【发布时间】:2013-02-05 11:18:01
【问题描述】:
我正在阅读我遇到以下行的 bash 脚本之一。我无法猜测以下这些行到底在做什么?谁能给我一些关于这些行到底在做什么的提示。我已经分别执行了这些行,但没有输出。我什至尝试使用断点。
ssh $HOST bash -e <<
'END' 2>&1 |
/usr/bin/perl -ne
'BEGIN { $|=1 } ;
if (/(bmake|create_dirs\.sh)\[\d+\] Leaving/)
{ --$indent };
print " "x($indent * 4), "$_" ;
if (/(bmake|create_dirs\.sh)\[\d+\] Entering/) { ++$indent }'
我期待任何善意的回应。
谢谢
【问题讨论】: