User Tools

Site Tools


команды_фильтры

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
команды_фильтры [2018/08/22 09:55]
val [cut]
команды_фильтры [2019/08/28 08:05]
val [tr]
Line 23: Line 23:
 $ df -h / | tr -s ' ' $ df -h / | tr -s ' '
  
-echo "​{\"​hw_id\":​\"​2\",​\"​hw_name\":​\"​router\"​}"​ | tr -d '​{}\\'​+$ getent group group1 | cut -f4 -d: | tr ","​ "​\n"​ 
 + 
 +echo "​{\"​hw_id\":​\"​2\",​\"​hw_name\":​\"​router\"​}"​ | tr -d '​{}\\'​
 </​code>​ </​code>​
  
Line 32: Line 34:
 Ключи -n -r -u -kN Ключи -n -r -u -kN
  
 +<​code>​
 +$ sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4 addresses.txt
 +</​code>​
 ===== uniq ===== ===== uniq =====
  
команды_фильтры.txt · Last modified: 2020/10/06 14:41 by val