- g-than
g-than-arg
g-than-sh
-=-prompt-=->
-=-prompt-=-> cat N
# just a test
33 22 999 223
44 55 99
# this is a comment
101 33 123 982 11 19 23 71
27 81 64 99
-=-prompt-=->
-=-prompt-=-> ./g-than N
# just a test
999
223
# this is a comment
123
982
-=-prompt-=->
-=-prompt-=-> ./g-than-arg -v threshold=30 N
# just a test
33
999
223
44
55
99
# this is a comment
101
33
123
982
71
81
64
99
-=-prompt-=->
-=-prompt-=-> ./g-than-sh 30 < N
# just a test
33
999
223
44
55
99
# this is a comment
101
33
123
982
71
81
64
99
-=-prompt-=->
-=-prompt-=->
- sum-fields
-=-prompt-=->
-=-prompt-=-> cat IN
233 112 33
# oh!, just a test
# again
333 hi kk 22
-=-prompt-=->
-=-prompt-=-> ./sum-fields IN
=378
# oh!, just a test
# again
hikk=355
-=-prompt-=->
-=-prompt-=->
- sum-vars
-=-prompt-=->
-=-prompt-=-> cat IN-num
klim 233 112 33
# oh!, just a test
# again
milk 333 22
klim 999 22
oak 222
redcow 1023
oak 11
milk 333 22
klim 999 22
redcow 1023
sunlun 1000000
oak 11
klim 999 22
oak 222
redcow 1023
oak 11
-=-prompt-=->
-=-prompt-=-> ./sum-vars IN-num
# oh!, just a test
# again
oak = 477
sunlun = 1000000
milk = 710
klim = 3441
redcow = 3069
-=-prompt-=->
- simulating sed with gsub()
simulating sed with gsub() twice
simulating sed with gensub()
-=-prompt-=->
-=-prompt-=-> cat INPUT
She has $100. She wins. She now has $10000.
He has $100. He wins. He now has $10000.
-=-prompt-=->
-=-prompt-=-> sed -e 's/S/$/g' INPUT
$he has $100. $he wins. $he now has $10000.
He has $100. He wins. He now has $10000.
-=-prompt-=->
-=-prompt-=-> ./sim-sed-1 INPUT
$he has $100. $he wins. $he now has $10000.
He has $100. He wins. He now has $10000.
-=-prompt-=->
-=-prompt-=-> sed -e 's/\$/$$/g' -e 's/S/$/g' INPUT
$he has $$100. $he wins. $he now has $$10000.
He has $$100. He wins. He now has $$10000.
-=-prompt-=->
-=-prompt-=-> ./sim-sed-2 INPUT
She:She has $$100. She wins. She now has $$10000.
$he:$he has $$100. $he wins. $he now has $$10000.
He:He has $$100. He wins. He now has $$10000.
He:He has $$100. He wins. He now has $$10000.
-=-prompt-=->
-=-prompt-=-> ./sim-sed-3 INPUT
She has $100. She wins. She now has $10000.
She has $100. She wins. She now has $10000.
$he has $$100. $he wins. $he now has $$10000.
He has $100. He wins. He now has $10000.
He has $100. He wins. He now has $10000.
He has $$100. He wins. He now has $$10000.
-=-prompt-=->
- simulating head
simulating tail
-
the sample dhcpd.leases
split the leases into zones
remove the abandoned records
remove the outdated records