Classic Shell Scripting phần 7 pps

Classic Shell Scripting phần 7 pps

Classic Shell Scripting phần 7 pps

... looks like on a GNU/Linux system: 2df30 875 121b9 276 7259e89282dd3002 /bin/ed 43252d689938f4d6a513a2f 571 786aa1 /bin/awk 3252d689938f4d6a513a2f 571 786aa1 /bin/gawk /bin/gawk-3.1.0 ay still ... awk '{ print $ show-identical-files /bin/* 2df30 875 121b9 276 7259e89282dd3002 /bin/red 4 43252d689938f4d6a513a2f 571 786aa1 We can conclude, for example, that ed and r...

Ngày tải lên: 12/08/2014, 10:22

44 331 0
Classic Shell Scripting phần 1 pps

Classic Shell Scripting phần 1 pps

... Section 7. 5. Tilde Expansion and Wildcards Section 7. 6. Command Substitution Section 7. 7. Quoting Section 7. 8. Evaluation Order and eval Section 7. 9. Built-in Commands Section 7. 10. Summary ... (valley-forge.example.com) betsy pts/3 Dec 27 11: 07 (flags-r-us.example.com) benjamin dtlocal Dec 27 17: 55 (kites.example.com) jhancock pts/5 Dec 27 17: 55 (:32) camus pts/6...

Ngày tải lên: 12/08/2014, 10:22

44 514 0
Classic Shell Scripting phần 2 ppsx

Classic Shell Scripting phần 2 ppsx

... nl c 143 364 164 145 012 143 1 57 164 145 012 143 1 57 164 351 012 143 0000020 t Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com 57 . Substitution details lash. It ... all gets tedious—for example, [012345 678 9] to match a digit or [012345 678 9abcdefABCDEF] to match a hexadecimal digit. For this reason, bracket expres 47 Originally, the range notati...

Ngày tải lên: 12/08/2014, 10:22

44 381 0
Mastering Unix Shell Scripting phần 7 pps

Mastering Unix Shell Scripting phần 7 pps

... since Tue May 7 07: 02:23 EDT 2002 - # lpstat -p printer long_queue disabled since Tue May 7 07: 02:01 EDT 2002. available. stopped by user printer s_q_nam disabled since Tue May 7 07: 02:01 EDT 2002. ... combine the shell scripts in Listings 17. 1 and 17. 4. We are also going to add the functionality to add pre- and post-ftp events. Let’s start by looking at the shell script in Lis...

Ngày tải lên: 14/08/2014, 16:20

71 249 0
Mastering unix shell scripting phần 3 ppsx

Mastering unix shell scripting phần 3 ppsx

... 28505 97 29% /u2 /dev/vg00/lvol7 102400 4284 92256 4% /tmp /dev/vg00/lvol13 2039808 1664 073 352294 83% /test2 /dev/vg00/lvol6 72 0896 531295 177 953 75 % /opt /dev/vg00/lvol5 409600 225464 176 663 ... /var/run /dev/dsk/c0d0s5 479 75 1221 419 57 3% /opt swap 554428 296 554132 1% /tmp /dev/dsk/c0d0s7 1015542 1 954598 1% /export/home /dev/dsk/c0d0s1 375 255 214843 1228 87 64% /usr/openwin...

Ngày tải lên: 09/08/2014, 16:20

70 340 0
Mastering unix shell scripting phần 4 ppsx

Mastering unix shell scripting phần 4 ppsx

... System Load 203 17: 45:14 25 75 0 0 17: 45:24 26 74 0 0 17: 45:34 25 75 0 0 Average 25 75 0 0 Now let’s look at the average of the samples directly. # sar 10 4 | grep Average Average 26 74 0 0 HP-UX # ... ./proc_wait.ksh xcalc WAITING for xcalc to start Thu Sep 27 21:11: 47 EDT 2001 xcalc has Started Execution Thu Sep 27 21:11:55 EDT 2001 root 2 677 2 178 66 13 21:11:54 pts/6 0:00...

Ngày tải lên: 09/08/2014, 16:20

70 361 0
Mastering unix shell scripting phần 7 pdf

Mastering unix shell scripting phần 7 pdf

... combine the shell scripts in Listings 17. 1 and 17. 4. We are also going to add the functionality to add pre- and post-ftp events. Let’s start by looking at the shell script in Listing 17. 5, get_ftp_ files.ksh. ... option is shown here: # lpstat -a hp4 accepting requests since May 07 07: 02 2002 yogi_hp4_1ps accepting requests since May 07 07: 02 2002 Listing 16.12 lpstat -a and lpstat...

Ngày tải lên: 09/08/2014, 16:20

70 347 0
Classic Shell Scripting phần 4 doc

Classic Shell Scripting phần 4 doc

... while IFS=: read user passwd uid gid name home shell do shell= $ {shell: -/bin/sh} # Empty shell field means /bin/sh file="/tmp/$(echo $shell | sed -e 's;^/;;' -e 's;/;-;g').mailing-li ... executable code! See Example 7- 3 toto:*:10 27: 18:Toto Gale/KNS322/555-0045:/home/toto:/bin/tcsh ben:*:301:10:Ben Franklin/OSD212/555-0022:/home/ben:/bin/bash jhanc...

Ngày tải lên: 12/08/2014, 10:22

44 742 0
Classic Shell Scripting phần 5 docx

Classic Shell Scripting phần 5 docx

... 219 T4Q 7XV", and uses its string value as the index. This scheme can be subverted, although we do not recommend that you do so—these statements all print the same item: ", "T4Q 7XV"] ... maildrop["53" SUBSEP " print maildrop["53\034Oak Lane", "T4Q 7XV"] print maildrop["53\034Oak Lane\034T4Q 7XV"] Clearly, if you later ch...

Ngày tải lên: 12/08/2014, 10:22

44 270 0
Classic Shell Scripting phần 8 doc

Classic Shell Scripting phần 8 doc

... 315 \245\246\2 47\ 250\251\252\253\254\255\256\2 57& quot; \ 261\262\263\264\265\266\2 67\ 270 \ 271 \ 272 \ 273 \ 274 \ 275 \ 276 \ 277 " \ 300\301\302\303\304\305\306\3 07\ 310\311\312\313\314\315\316\3 17& quot; \ ... "\320\321\322\323\324\325\326\3 27\ 330\331\332\333\334\335\336\3 37& quot; \ "\340\341\342\343\344\345\346\3 47\ 350\351\352\353\354\355\356\3 57& quot;...

Ngày tải lên: 12/08/2014, 10:22

44 472 0
w