2020-08-02

arch-expac

1. DESCRIPTION 描述
2. OPTIONS 选项
3. Formatting 格式字段列表
4. EXAMPLES 举例

1. DESCRIPTION 描述

expac是用于alpm数据库的数据提取工具。
它具有类似于printf的灵活性,旨在用作不与该库链接的其他基于pacman的实用程序的简单工具。它使用pacman.conf作为配置文件来查找和加载本地数据库和同步数据库。调用expac包括提供一个格式字符串,通常由一对多的格式标记(请参阅FORMATTING部分),任何相关选项以及从零到多个目标来描述。格式字符串必须是第一个非选项参数。目标可以是简单的程序包名称,查询字符串(对于搜索而言),或者在提供-sync选项时使用repo/package语法。
简单的说, 该命令可以获取pacman -Si或-Qi的所有字段的信息, 按照想要的格式输出. 当然会比-Si更好用, 更灵活.

2. OPTIONS 选项

-Q, --querySearch the local database for provided targets. This is the default behavior.在本地数据库中搜索提供的目标。这是默认行为。
-S, --syncSearch the sync databases for provided targets.在同步数据库中搜索提供的目标。
-s, --searchSearch for packages matching the strings specified by targets. This is a boolean AND query and regex is allowed.搜索与目标指定的字符串匹配的软件包。这是布尔AND查询,并且允许使用正则表达式。
-g, --groupReturn packages matching the specified targets as package groups.将与指定目标匹配的软件包作为软件包组返回。
--config <file>Read from file for alpm initialization instead of /etc/pacman.conf.从文件读取进行alpm初始化,而不是/etc/pacman.conf。
-H, --humansize <size>Format package sizes in SI units according to size. Valid options are: B, K, M, G, T, P, E, Z, Y根据尺寸以SI单位格式化包装尺寸。有效选项包括: B,K,M,G,T,P,E,Z,Y
-1, --readoneStop searching after the first result. This only has an effect on -S operations without -s.在第一个结果之后停止搜索。这仅对不带-s的-S操作有影响。
-d, --delim <string>Separate each package with the specified string. The default value is a newline character.用指定的字符串分隔每个程序包。默认值为换行符。
-l, --listdelim <string>Separate each list item with the specified string. Lists are any interpreted sequence specified with a capital letter. The用指定的字符串分隔每个列表项。列表是用大写字母指定的任何解释序列。的
-p, --fileInterpret targets as paths to local files.将目标解释为本地文件的路径。
-t, --timefmt <format>Output time described by the specified format. This string is passed directly to strftime(3). The default format is %c.输出时间以指定格式描述。该字符串直接传递到strftime(3)。默认格式为%c。
-v, --verboseOutput more. `Package not found' errors will be shown, and empty field values will display as 'None'.输出更多。将显示“未找到软件包”错误,空白字段值将显示为“无”。
-V, --versionDisplay version information and quit.显示版本信息并退出。
-h, --helpDisplay the help message and quit.显示帮助消息并退出。
  -t, --timefmt <format>
$ man strftime
  %F - Equivalent to %Y-%m-%d (the ISO 8601 date format). (C99)
  '%Y-%m-%d %H:%M'
https://linux.die.net/man/3/strftime
https://apidock.com/ruby/DateTime/strftime
Combination:
  %c - date and time (%a %b %e %T %Y)
  %D - Date (%m/%d/%y)
  %F - The ISO 8601 date format (%Y-%m-%d)
  %v - VMS date (%e-%b-%Y)
  %x - Same as %D
  %X - Same as %T
  %r - 12-hour time (%I:%M:%S %p)
  %R - 24-hour time (%H:%M)
  %T - 24-hour time (%H:%M:%S)
  %+ - date(1) (%a %b %e %H:%M:%S %Z %Y)

3. Formatting 格式字段列表

-Si -Qi Item...内容举例: geditexpac Item…field( )format参数允许以下解释的序列:
Repositoryextrarepo%r(-S)Q仓库名
Namegeditpackage name%n
包裹名字
Version3.36.2-1version%v
DescriptionGNOME Text Editordescription%d
描述
Architecturex86_64architecture%a
建筑
URLhttps://wiki.gnome.org/Apps/Geditproject URL%u
项目网址
LicensesGPLlicenses%L
执照
Groupsgnomegroups%G
ProvidesNone *.soprovides%P
提供
%Sno ver
Depends OnGtksourceview4 …depends on%D
依赖于
%Eno ver
Optional Depsgedit-plugins: Additional featuresoptional deps%O
可选的依赖项
%ono des
Required ByNonerequired by%N(-Q)需求
Optional ForNone



Conflicts WithGedit-code-assistance…conflicts with%H
与...发生冲突
%Cno ver
ReplacesNonereplaces%T
取代
%Rno ver
Download Size2.21 MiBdownload size%k(-S)下载大小(仅适用于-S)
Installed Size14.31 MiBinstall size%m
安装尺寸
PackagerJan Alexander Steffens (heftig)…packager name%p
包装名称
Build Date2020-04-26T03:11:37 CSTbuild date%b
建立日期
Install Date2020-07-31T08:11:54 CSTinstall date%l(-Q)安装日期(仅适用于-Q)
Install ReasonExplicitly installedinstall reason%w(-Q)安装原因(仅适用于-Q)
Install ScriptNohas install scriptlet%i(-Q)已安装脚本(仅与-Q一起使用)
Validated ByMD5 Sum SHA-256 Sum Signature
Signature
package validation method%V
包验证方法

geditpackage base%e
包装基础


backup files%B
备份文件


modified backup files%M(-Q)修改后的备份文件(仅与-Q一起使用)

*.pkg.tar.zstfilename%f(-S)文件名(仅用于-S)

-Qlfiles%F(-Q)文件(仅与-Q一起使用)

base64 encoded PGP signature%g(-S)base64编码的PGP签名(仅适用于-S)

sha256sum%h
sha256sum

md5sum%s
md5sum

0result number%!
结果编号(自动递增的计数器,从0开始)

%literal %%%
文字%

4. EXAMPLES 举例

$ expac -Q '%n%v%d%a%u%L%G%S%E%o%N%C%R%m%p%b%l%w%i%V' -l '\t' -H M -t "%F" > temp.txt
$ expac -Q '%n\t%v\t%d\t%a\t%u\t%L\t%G\t%S\t%E\t%o\t%N\t%C\t%R\t%m\t%p\t%b\t%l\t%w\t%i\t%V' -H M -t "%F" > temp.txt
$ expac -Q '%n\t%v\t%d\t%a\t%u\t%L\t%G\t%S\t%E\t%o\t%N\t%C\t%R\t%m\t%p\t%b\t%l\t%w\t%i\t%V' -H M -t '%Y-%m-%d %H:%M' > temp.txt
一次列出所有软件包的主要20个字段信息写入temp.txt文件, 打开全选, 复制到xls表格文件.
注: 最有一列[可选], 提供更详细的内容.
fieldItem中文描述可选
%nName包名
%vVersion
%dDescription描述
%aArchitecture建筑
%uURL项目网址
%LLicenses执照
%GGroups
%SProvides提供(无版本)%P
%EDepends On依赖于(无版本)%D
%oOptional Deps可选的依赖项(无描述)%O
%NRequired By需求
%CConflicts With与...发生冲突(无版本)%H
%RReplaces替换(无版本字符串)%T
%mInstalled Size安装尺寸
%pPackager包装名称
%bBuild Date建立日期
%lInstall Date安装日期(仅适用于-Q)
%wInstall Reason安装原因(仅适用于-Q)
%iInstall Script已安装脚本(仅适用于-Q)
%VValidated By包验证方法

2020-08-01

world-population

# 一些值得关注的数字

https://www.worldometers.info/cn/
type2020-07-31https://www.worldometers.info/cn/
世界
人口
7,801,777,403目前世界人口总数
81,720,420今年出生的人数
34,308,190今年死亡的人数
47,412,230今年增加的人数
政府
经济
39,516,324今年汽车产量
81,462,865今年自行车产量
205,689,088今年电子计算机销售量
社会
媒体
1,565,603今年出版书目总量
4,633,569,644世界网络用户总数
环境3,033,632今年被砍伐森林面积(公顷)
4,084,089今年由于水土流失而损失的耕地面积(公顷)
6,999,982今年沙漠化的土地面积(公顷)
5,712,206今年工业上被排放进入生态环境的有毒化学品(吨)
21,100,642,550今年二氧化碳排放量(吨)
食物844,866,838目前世界上营养不良的人数
1,696,834,797目前世界上肥胖的人数
762,204,879目前世界上过度肥胖的人数
11,082,409今年消耗的水量(十亿升)
799,114,954目前无法获取安全饮用水的人数
491,195今年因水源相关的疾病而致死的人数
能源15,658离石油耗尽的天数( 40年)
57,603离天然气耗尽天数(150年)
148,772离煤炭耗尽的天数(400年)
健康41,985,167感染艾滋病的人数
24,812,163今年堕胎数
7,572,122今年由于传染病而造成的死亡人数
4,790,526今年由癌症致死的人数
4,433,629今年五岁以下儿童死亡人数
2,915,893今年由吸烟而造成的死亡人数
1,458,866今年由酗酒而造成的死亡人数
980,549今年由艾滋病致死的人数
787,383今年由于交通意外而致死人数
625,491今年自杀人数
572,140今年由疟疾致死的人数
180,289今年生育过程中母亲死亡人数

# Population of the world and countries

https://countrymeters.info/en
countrymeters.info/en/World#death_clock


2020-07-31
Top 5 death causes in the World今天%今年世界上5大死亡原因
Coronary artery disease22,33815.51%5,499,855冠狀動脈疾病
Stroke15,92311.06%3,920,065中风
Lower respiratory tract infection8,1425.65%2,004,173下呼吸道感染
Chronic obstructive pulmonary disease8,0915.62%1,991,410慢性阻塞性肺病
Trachea, bronchus, lung cancers4,3253.00%1,064,308肺,气管和支气管癌
人口里程碑
  • 1 billion - 1804
  • 2 billion - 1927 (in 123 years)
  • 3 billion - 1960 (in 33 years)
  • 4 billion - 1974 (in 14 years)
  • 5 billion - 1987 (in 13 years)
  • 6 billion - 1999 (in 12 years)
  • 7 billion - 2011 (in 12 years)

# 更多相关链接

http://data.stats.gov.cn/english/
http://data.stats.gov.cn/
http://www.chamiji.com/
http://www.wikiwand.com/zh-mo/各国家和地区人口列表
https://www.ifreesite.com/population/
https://www.un.org/zh/sections/issues-depth/population/index.html
https://zh.wikipedia.org/wiki/世界人口
https://zh.wikipedia.org/wiki/各国家和地区人口列表
https://en.wikipedia.org/wiki/2019%E2%80%9320_coronavirus_pandemic
https://en.wikipedia.org/wiki/Category:Graphical_timeline_templates
https://en.wikipedia.org/wiki/Human_overpopulation
https://en.wikipedia.org/wiki/List_of_countries_and_dependencies_by_population
https://en.wikipedia.org/wiki/Template:Human_timeline
https://en.wikipedia.org/wiki/Template:Nature_timeline
https://en.wikipedia.org/wiki/World_population
http://deathmeters.info/
https://www.census.gov/popclock/
https://countrymeters.info/cn/World
https://data.worldbank.org.cn/indicator/sp.pop.totl
https://web.archive.org/web/20120709092946/https://www.census.gov/population/international/data/worldpop/table_history.php

# 更多数据源
https://zhuanlan.zhihu.com/p/25130679
1/数据源; 2/数据交易; 3/指数研究; 4/研究机构; 5/采集器; 6/API接口;

https://github.com/caesar0301 (caesar0301/awesome-public-datasets)
https://github.com/awesomedata/awesome-public-datasets
如果觉得前面的数据源还不够,github上的大神已经为大家整理好了一个非常全面的数据获取渠道,包含各个细分领域的数据库资源,自然科学和社会科学的覆盖都很全面,简直是做研究和数据分析的利器。

Diode

导航 (返回顶部) 1. Diode 1.1 Diode 概述 1.2 肖克利二极管方程 1.3 缩写 Abbreviations 2. 主要功能 2.1 单向电流 (Unidirectional current flow) 2.2 阈值电压 (Threshold...