User Tools

Site Tools


linux:sed

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
linux:sed [2018/10/22 11:28]
percy
linux:sed [2018/10/22 11:31] (current)
percy
Line 27: Line 27:
 ==== Combine every 3 lines into one line ==== ==== Combine every 3 lines into one line ====
   sed '​N;​N;​s/​\n/​ /g'   sed '​N;​N;​s/​\n/​ /g'
 +  ​
 +==== Calculate the number ====
 +  cat crashlist_googleplay_20181012.txt|grep -v "​^$"​|grep -A 2 "​^in"​|grep -v "​-"​|gsed "​N;​N;​s/​\n/​ /​g"​|awk '{sum += $4 } END { print sum }'
 +
 +  ​
  
/var/www/dokuwiki/wiki/data/pages/linux/sed.txt · Last modified: 2018/10/22 11:31 by percy