如何将一个数字打印到一行?我现在不怎么使用\ n和功能。
/^$/{flag=""} /Input-Output in F Format/{flag=1;next} flag && ($0 ~ /^[0-9]/ ||
$0 ~ /^ [0-9]+/) && ($0 !~ /26 0/ && $0 !~ /28 0/){ print t($5) t($6)} function t(n, s) { s=index(n,"."); return (s ? substr(n,1,s+6) : n) }
答案 0 :(得分:1)
您可以这样做:
use AppBundle\DependencyInjection\AppExtension;
class AppCompilerPass implements CompilerPassInterface
{
private $extension;
public function __construct(AppExtension $extension = null)
{
$this->extension = $extension;
}
public function process(ContainerBuilder $container)
{
//...
if (!$this->extension) {
//always make sure the extension exists
return;
}
$config = $this->extension->getConfig();
dump($config);
//...
}
}
在awk中,空间是连接在一起的。