User Tools

Site Tools


unix_shell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
unix_shell [2022/04/23 11:31] 134.190.232.106unix_shell [2022/06/23 10:21] (current) 134.190.232.106
Line 1: Line 1:
-//The commonly used scripts collected from previous Github page and course materials.//+The commonly used scripts collected from previous Github page and course materials.
  
 1.How to set up timer for specific script run? 1.How to set up timer for specific script run?
Line 141: Line 141:
 </code> </code>
  
-<Last updated by Xi Zhang on Oct 6th,2021>+ 
 +How to use sort in linux, especially ignore the header to sort special col? 
 +<code> 
 +(head -n 1 all.txt && tail -n +2 all.txt| sort -n -r -k2) > 123.txt 
 + 
 +# sort -n 
 +#sort -r 
 +#sort -k 
 +https://shapeshed.com/unix-sort/; https://stackoverflow.com/questions/14562423/is-there-a-way-to-ignore-header-lines-in-a-unix-sort 
 +</code> 
 + 
 +<Last updated by Xi Zhang on Oct 6th,2021> <June 23th,2022>
unix_shell.1650724276.txt.gz · Last modified: by 134.190.232.106