$ 4.1.5 20 84—> cat phparray.php $ 4.1.5 21 85—> php phparray.php Welcome PHP C C++ Java Perl Python Ruby $ 4.1.5 22 86—>
Author Archives: jeffrin
regular expression — PHP
commandline session <?php $text = “Hello World”; if ( preg_match( “/r.*?d/”, $text, $array ) ) { print “<pre>n”; print_r( $array ); print “</pre>n”; } ?> note: preg_match — Perform a regular expression match source : www.phpcode.net OUTPUT $ 4.2.36 13 513—> php rep.php PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20100525/suhosin.so’ – /usr/lib/php5/20100525/suhosin.so: …
Examining /etc/passwd file in Typical Unix-like OS
ABOUT /etc/passwd file The /etc/passwd file is a text-based database of information about users that may log into the system or other operating system user identities that own running processes. In many operating systems this file is just one of many possible back-ends for the more general passwd name service. The file’s name originates from …
Continue reading “Examining /etc/passwd file in Typical Unix-like OS”
GREP SEARCH STRING USING BACKTICK
$ 4.2.36 7 507—> grep `whoami` algorithm.c to jeffrin@rocketmail.com $ 4.2.36 8 508—> $ 4.2.36 8 508—> whoami jeffrin $ 4.2.36 9 509—> $ 4.2.36 3 503—> grep ls ls2.wav Binary file ls2.wav matches $ 4.2.36 4 504—> grep `ls` ls2.wav grep: 12: Is a directory grep: 2008: Is a directory grep: 2010: Is a …
XARGS and CD command
$ 4.2.36 45 545—> ls shelter symmel $ 4.2.36 46 546—> ls shelter | xargs sh -c ‘cd’ $ 4.2.36 47 547—> ls shelter | xargs du -h du: cannot access `symmel’: No such file or directory $ 4.2.36 48 548—> ls shelter | xargs sh -c ‘cd’| pwd /home/jeffrin $ 4.2.36 49 549—>
SEARCH AND REPLACE USING SED
commandline session $ 4.2.36 13 513—> cat math.html <html> <body> <msup> <mfenced> <mi>a</mi> <mo>+</mo> <mi>b</mi> </mfenced> <mn>2</mn> </msup> </body> </html> $ 4.2.36 14 514—> $ sed “s/html/HTML/g” math.html > math-new.html bash: $: command not found $ 4.2.36 15 515—> sed “s/html/HTML/g” math.html > math-new.html $ 4.2.36 16 516—> cat math-new.html <HTML> <body> <msup> <mfenced> <mi>a</mi> …
KNOWLEDGE ENGINEERING WITH SOFTWARE
BEAUTIFULWORK is a effort to BEAUTIFUL GRAPHS WITH KNOWLEDGE PARAMETERS
DOCUMENTATION
BEAUTIFULWORK is like a blog and has different methods of expression of knowledge. THERE ARE LEARNING STYLES EARLY BIRD Here you can see a GNU/Linux or related command in an overall round up which touches the possibility for the command in different levels. COCOA
Bison Tinkering
commandline session /* Reverse polish notation calculator. */ %{ #define YYSTYPE double #include %} %token NUM %% /* Grammar rules and actions follow */ $ 4.2.36 19 519—> bison rpcalc.y rpcalc.y:11.1: syntax error, unexpected end of file $ 4.2.36 20 520—> $ 4.2.36 1 501—> vim la.y $ 4.2.36 2 502—> bison la.y la.y:6.1: invalid …
UNCOMPRESS vmlinuz to vmlinux
commandline session root@debian:/boot# od -A d -t x1 vmlinuz-3.2.0-3-amd64 | grep ‘1f 8b 08 00′ 0018096 00 ff e0 1f 8b 08 00 00 00 00 00 02 03 ec fd 7b root@debian:/boot# dd if=vmlinuz bs=1 skip=18099 | zcat > vmlinux dd: opening `vmlinuz’: No such file or directory gzip: stdin: unexpected end of file …