這裏是輸出。正則表達式在括號內匹配ulimit
core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 104448 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 16320 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
我想擁有所有的(塊,-c),(千字節,-d),(-e)等相匹配的正則表達式...從每一行。
你有什麼,到目前爲止,怎麼不工作? – 2011-04-26 05:05:33