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
Next revisionBoth sides next revision
user:yeti:ncomm [2018/01/14 06:22] โ€“ minuscule changes yetiuser:yeti:ncomm [2019/08/06 18:12] โ€“ [Comparing (Packages) Lists] yeti
Line 1: Line 1:
-===== `ncomm` โ€” Comparing (Packages) Lists =====+===== Comparing (Packages) Lists =====
  
-''ncomm'' started as helper to compare lists of installed packages of more than two systems on OpenWrt but turned out to be usefull in other contexts too.+''ncomm'' started as helper to compare lists of installed packages of more than two systems or dates on OpenWrt but turned out to be usefull in other contexts too.
  
 <file awk ncomm> <file awk ncomm>
 #!/usr/bin/awk -f #!/usr/bin/awk -f
-# ncomm-1462986864+# ncomm-1565083172
 BEGIN { BEGIN {
  if(ARGC<2) {  if(ARGC<2) {
Line 24: Line 24:
  for(i in P) {  for(i in P) {
  printf i"/" | c  printf i"/" | c
- for(n=1;n<ARGC;n++) printf f[i,n]?"+ ":"  " | c+ for(n=1;n<ARGC;n++) printf f[i,n]?"+ ":"ยท " | c
  print i | c  print i | c
  }  }
Line 31: Line 31:
 </file> </file>
  
 +:!: The sorting is done in a decorate-sort-undecorate triple jump using ''/'' to separate decoration and data. To use data including ''/'' this needs o be changed to a different character or the whole way of sorting has to be changed to e.g. sort an index array only, so this separator gets futile.  --- //[[user:yeti|yeti]] 2018/03/26 16:31 GMT//
 ==== Example 1 ==== ==== Example 1 ====
  
  • Last modified: 2019/08/06 18:14
  • by yeti