Subscribe: Comments on My SysAd Blog -- Unix: Merge Multiple Files and Sort Simultaneously
http://www.mysysad.com/feeds/8232594986893159868/comments/default
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
cpu  file  results txtthe  save time  save  sort  sorting tip  sorting  time cpu  time  tip save  tip  txt results  txt  txtthe correct 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Comments on My SysAd Blog -- Unix: Merge Multiple Files and Sort Simultaneously

Comments on My SysAd Blog -- Unix: Merge Multiple Files and Sort Simultaneously





Updated: 2017-08-10T07:44:05.379-07:00

 



Sorting? Here's a little tip to save time and CPU ...

2007-12-22T12:29:00.000-08:00

Sorting? Here's a little tip to save time and CPU cycles:

sort -u user[1-4].txt -o results.txt

The correct interpretation of the "[1-4]" regex will of course depend on the shell.

Did you know that it is possible to simultaneosly read and write to the same file with sort(1)?

sort file.txt -o file.txt

Enjoy.