bag2php / p-command
AWK like PHP wrapper for command line
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/bag2php/p-command
This package is auto-updated.
Last update: 2025-09-08 12:40:20 UTC
README
p
command is inspired by AWK, rb and opy.
Special variable
- User-modified variables:
string $OFS
- Output Field Separator (default:string $ORS
- Output Record Separator (default:PHP_EOL
) [AWK compatible]
- Auto-set variables:
int $NR
- The number of input records [AWK compatible]int $FNR
- The current record number in the current file [AWK compatible]string $F0
- Contains current linestring[] $F
- Contains fields separated by$OFS
[AWK compatible]int $NF
- The number of fields in$F
[AWK compatible]int $argi
- Same as$NR
[PHP compatible]string $argn
- Same as$F0
[PHP compatible]