- Bump ctx API to 1.31.0; extend /proc/bare_os/syscalls.json schema 4 (fdModel, signalModel) - Add /mirror/aux* routing for auxiliary Hyperdrives; optional BLAKE2b-keyed /bin cache (BARE_OS_VFS_BIN_CACHE_BLAKE2B) - Wire seeder snapshotHintsJson from BARE_OS_SEED_* env; add seeder unit tests - Shell: trap -p; docs for jobs/bg/trap; sync schemas, examples, compatibility matrix, handbook ch.9 - Coreutils: Issue 7 man option rows for cp/mv/ln/find/grep/sed/awk/tar/test/true; xcu-issue7-sweep tests - Docs: env appendix, vault-threat-model, node-vs-bare-host-matrix, test:bare, CHANGELOG 1.31.0
49 lines
1.1 KiB
JSON
49 lines
1.1 KiB
JSON
{
|
|
"name": "awk",
|
|
"section": 1,
|
|
"title": "pattern scanning and processing language",
|
|
"synopsis": [
|
|
"awk [OPTION]... [OPERAND]..."
|
|
],
|
|
"description": "Pattern-directed scanning and processing. Engine in lib/awk-engine.js; not full POSIX awk.",
|
|
"options": [
|
|
{ "flag": "-F sep", "meaning": "[Issue 7 awk] Field separator." },
|
|
{ "flag": "-v var=value", "meaning": "[Issue 7 awk] Assign variable before script runs." }
|
|
],
|
|
"keywords": [
|
|
"awk",
|
|
"pattern",
|
|
"field",
|
|
"script"
|
|
],
|
|
"seeAlso": [
|
|
{
|
|
"name": "sed",
|
|
"section": 1
|
|
},
|
|
{
|
|
"name": "grep",
|
|
"section": 1
|
|
}
|
|
],
|
|
"bareOsNotes": "See handbook ch.9 for divergence from Issue 7.",
|
|
"examples": [
|
|
{
|
|
"caption": "print column 1",
|
|
"code": "awk '{print $1}' file.txt"
|
|
},
|
|
{
|
|
"caption": "field separator",
|
|
"code": "awk -F: '{print $1}' /etc/passwd"
|
|
},
|
|
{
|
|
"caption": "sum numbers in first column",
|
|
"code": "awk '{s+=$1} END{print s}' nums.txt"
|
|
},
|
|
{
|
|
"caption": "lines matching /re/",
|
|
"code": "awk '/error/{print NR\": \"$0}' log.txt"
|
|
}
|
|
]
|
|
}
|