( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0010414080{main}( ).../index.php:0
20.12544264912Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.406513117080Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.406713117024Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.406713117400Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.406713117400Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.406913117496Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.407313155736require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.412813448096GKTemplate->__construct( ).../component.php:31
100.419813589616GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.420613633584require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0010414080{main}( ).../index.php:0
20.12544264912Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.406513117080Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.406713117024Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.406713117400Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.406713117400Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.406913117496Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.407313155736require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.412813448096GKTemplate->__construct( ).../component.php:31
100.423013756448GKTemplateMenu->getMenuType( ).../gk.framework.php:85
Shell 之 column 格式化输出日志文件 整齐
Logo
Print this page

Shell 之 column 格式化输出日志文件 整齐

最近在调整一个脚本脚本,在cygwin下,脚本输出的日志杂乱,看起来很费劲。想对输出进行排序,由于列的宽度都是不固定的,所以操作起来很吃力,怎么都调整不好。

后来找到一个命令,非常好用

 

那就是:column -t filename

先前输出的日志如下:

乱的像一团麻一样,看起来非常吃力。

使用column 之后如下:

整整齐齐,一目 了然,在脚本使用,输出也是非常清爽


( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0009414560{main}( ).../index.php:0
20.10934265456Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10934265456Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.329111456696Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.330111481296Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.331311536624Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.331611564024require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.343211963656K2ControllerItem->execute( ).../k2.php:64
90.343211963656K2ControllerItem->display( ).../BaseController.php:710
100.357312614360K2ControllerItem->display( ).../item.php:78
110.357312614360K2ControllerItem->display( ).../controller.php:19
120.363812985400Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.365113005768K2ViewItem->display( ).../ViewController.php:102
140.458015834640K2ViewItem->display( ).../view.html.php:742
150.458015834640K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.459616007576include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0009414560{main}( ).../index.php:0
20.10934265456Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10934265456Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.329111456696Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.330111481296Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.331311536624Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.331611564024require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.343211963656K2ControllerItem->execute( ).../k2.php:64
90.343211963656K2ControllerItem->display( ).../BaseController.php:710
100.357312614360K2ControllerItem->display( ).../item.php:78
110.357312614360K2ControllerItem->display( ).../controller.php:19
120.363812985400Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.365113005768K2ViewItem->display( ).../ViewController.php:102
140.458015834640K2ViewItem->display( ).../view.html.php:742
150.458015834640K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.459616007576include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.