( ! ) 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.0009415432{main}( ).../index.php:0
20.22674720640Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.797517171144Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.797617171200Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.797617171576Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.797617171576Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.797817171672Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.798117211592require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.803217508864GKTemplate->__construct( ).../component.php:31
100.809817693248GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.810517738104require_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.0009415432{main}( ).../index.php:0
20.22674720640Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.797517171144Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.797617171200Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.797617171576Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.797617171576Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.797817171672Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.798117211592require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.803217508864GKTemplate->__construct( ).../component.php:31
100.812717866432GKTemplateMenu->getMenuType( ).../gk.framework.php:85
Lexicographically sorting large files in Linux
Logo
Print this page

Lexicographically sorting large files in Linux

When I hear the word “sort” my first thought is usually “Hadoop”! Yes, sorting is one thing that Hadoop does well, but if you’re working with large files in Linux the built-in sort command is often all you need.

Let’s say you have a large file on a host with 2GB or more of main memory free. The following sort command is a efficient way to lexicographically-order large files.

LC_COLLATE=C sort --buffer-size=1G --temporary-directory=./tmp --unique bigfile.txt

Let’s break this command down and examine each part in detail.


( ! ) 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.0009415432{main}( ).../index.php:0
20.22674720640Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.22674720640Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.607112448904Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.608012473312Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.609212528640Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.609512557464require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.627612992872K2ControllerItem->execute( ).../k2.php:64
90.627612992872K2ControllerItem->display( ).../BaseController.php:710
100.654013718072K2ControllerItem->display( ).../item.php:78
110.654013718072K2ControllerItem->display( ).../controller.php:19
120.660614114440Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.665714134808K2ViewItem->display( ).../ViewController.php:102
140.789417106024K2ViewItem->display( ).../view.html.php:742
150.789417106024K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.792617286224include( '/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.0009415432{main}( ).../index.php:0
20.22674720640Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.22674720640Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.607112448904Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.608012473312Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.609212528640Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.609512557464require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.627612992872K2ControllerItem->execute( ).../k2.php:64
90.627612992872K2ControllerItem->display( ).../BaseController.php:710
100.654013718072K2ControllerItem->display( ).../item.php:78
110.654013718072K2ControllerItem->display( ).../controller.php:19
120.660614114440Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.665714134808K2ViewItem->display( ).../ViewController.php:102
140.789417106024K2ViewItem->display( ).../view.html.php:742
150.789417106024K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.792617286224include( '/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.