distinguish column -n argument in examples
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 18 Nov 2022 19:17:31 +0000 (20:17 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 21 Nov 2022 18:49:29 +0000 (19:49 +0100)
Required in common 4.3BSD version, but entirely incompatible with the
linux-util replacement on at least modern Debian.

barcat

diff --git a/barcat b/barcat
index edc12bf9303adb754d0995af62501711932c7f7a..2a931c6a55fb92f6be6e09ea13c5a5d45234115e 100755 (executable)
--- a/barcat
+++ b/barcat
@@ -662,7 +662,7 @@ In PostgreSQL from within the client:
 Earthquakes worldwide magnitude 1+ in the last 24 hours:
 
     curl https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_day.csv |
-    column -tns, | barcat -f4 -u -l80%
+    column -ts, -n | barcat -f4 -u -l80%
 
 External datasets, like movies per year:
 
@@ -689,7 +689,7 @@ Total population history in XML from the World Bank:
 Population and other information for all countries:
 
     curl http://download.geonames.org/export/dump/countryInfo.txt |
-    grep -v '^#\s' | column -tns$'\t' | barcat -f+2 -u -l150 -s
+    grep -v '^#\s' | column -ts$'\t' -n | barcat -f+2 -u -l150 -s
 
 And of course various Git statistics, such commit count by year: