0
  1. Trang chủ >
  2. Công Nghệ Thông Tin >
  3. Kỹ thuật lập trình >

Mastering Unix Shell Scripting phần 2 pptx

Mastering Unix Shell Scripting phần 2 pptx

Mastering Unix Shell Scripting phần 2 pptx

... 11:function while_LINE_line_cmdsub2_FDreal 8m24.58suser 0m50.04ssys 7m16.07sMethod 12: function while_line_LINE_FDreal 7m54.57suser 0m35.88ssys 7m2 .26 sListing 2. 17 Timing data for each loop ... line LINE58 Chapter 2 user 0m50.82ssys 6m14 .26 sMethod 9:function while_read_LINE_FDreal 0m5.89suser 0m5.53ssys 0m0 .28 sMethod 10:function while_LINE_line_FDreal 8m25.35suser 0m50.68ssys ... while_LINE_line_cmdsub2_FD{exec 3<&0exec 0< $FILENAMEwhile LINE=$(line)doprint “$LINE”:doneexec 0<&3Listing 2. 15 12_ ways_to_parse.ksh shell script listing. (continued)70 Chapter 2 Whether...
  • 71
  • 286
  • 0
Mastering unix shell scripting phần 2 pdf

Mastering unix shell scripting phần 2 pdf

... 7m20.48suser 0m51.01ssys 6m14.57sMethod 7:function while_LINE_line_cmdsub2real 7m18.04suser 0m 52. 01ssys 6m10.94sMethod 8:function while_LINE_line_bottom_cmdsub2real 7m20.34sListing 2. 17 ... 7m16.87suser 0m51.87ssys 6m8.54sMethod 7:function while_LINE_line_cmdsub2real 7m18.04suser 0m 52. 01ssys 6m10.94sListing 2. 22 Command substitution timing difference.In Method 4 the command substitution ... “$LINE”:done}Listing 2. 21 Method 1: Made second place in timing tests.The method in Listing 2. 21 is the most popular way to process a file line by line. I seethis technique in almost every shell script...
  • 70
  • 392
  • 0
Mastering unix shell scripting phần 1 pdf

Mastering unix shell scripting phần 1 pdf

... Host 20 Setting Traps 21 User Information Commands 22 who Command 22 w Command 22 last Command 22 ps Command 23 Communicating with Users 23 Uppercase or Lowercase Text for Easy Testing 24 Check ... instead. 2 Chapter 1Acknowledgments viiIntroduction xixChapter 1 Scripting Quick Start and Review 1Case Sensitivity 1 Unix Special Characters 2 Shells 2 Shell Scripts 2 Functions 2 A Function ... Code 25 Time-Based Script Execution 27 cron tables 27 Cron Table Entry Syntax 27 Wildcards 28 at Command 28 Output Control 28 Silent Running 28 Using getopts to Parse Command-Line Arguments 29 Making...
  • 71
  • 390
  • 0
Mastering unix shell scripting phần 3 ppsx

Mastering unix shell scripting phần 3 ppsx

... ON/dev/vg00/lvol3 1515 52 89500 58669 60% //dev/vg00/lvol1 47 829 24 109 18937 56% /stand/dev/vg00/lvol9 1310 720 860 829 422 636 67% /var/dev/vg00/lvol8 9 728 00 5543 92 3 923 58 59% /usr1 32 Chapter 5}####################################function ... /var/run/dev/dsk/c0d0s5 47975 122 1 41957 3% /optswap 554 428 29 6 5541 32 1% /tmp/dev/dsk/c0d0s7 10155 42 1 954598 1% /export/home/dev/dsk/c0d0s1 37 525 5 21 4843 122 887 64% /usr/openwinTable 5.7 ... 100% 328 378 100% /cdrom130 Chapter 5Table 5.8 (Continued)FILESYSTEM KBYTES USED AVAIL %USED MOUNTED ON/dev/vg13/lvol1 419 020 8 1155095 28 50597 29 % /u2/dev/vg00/lvol7 1 024 00 428 4 922 56 4%...
  • 70
  • 340
  • 0
Mastering unix shell scripting phần 4 ppsx

Mastering unix shell scripting phần 4 ppsx

... 10 4HP-UX dino B.10 .20 A 9000/715 07 /29 /1 02 22: 48:10 %usr %sys %wio %idle 22 :48 :20 40 60 0 0 22 :48:30 40 60 0 0 22 :48:40 12 19 0 68 22 :48:50 0 0 0 100Average 23 35 0 42 Now let’s only look ... 000 125 604800 07/31/ 02 19 :24 :00 %usr %sys %wio %idle19 :24 :30 0 1 1 9819 :25 :00 4 15 13 6819 :25 :30 26 28 40 619 :26 :00 13 12 11 6419 :26 :30 16 44 0 3919 :27 :00 27 73 0 019 :27 :30 20 48 2 3019 :28 :00 ... AverageAverage 25 37 0 38Linux# sar 10 4Linux 2. 4 .2- 2 (bambam) 07 /29 /20 02 10:01:59 PM CPU %user %nice %system %idle10: 02: 09 PM all 0.10 0.00 0.00 99.9010: 02: 19 PM all 0.00 0.00 0.10 99.9010: 02: 29 PM...
  • 70
  • 361
  • 0
Mastering unix shell scripting phần 5 doc

Mastering unix shell scripting phần 5 doc

... POINThd5 boot 1 2 2 closed/syncd N/Ahd6 paging 80 160 2 open/syncd N/Ahd8 jfslog 1 2 2 open/syncd N/Ahd4 jfs 4 8 2 open/syncd /hd2 jfs 40 80 2 open/syncd /usrhd9var jfs 10 20 2 open/syncd /varhd3 ... /remd_log1aremp2_log1b jfs 1 1 1 open/syncd /remd_log1bremp2_log2a jfs 1 1 1 open/syncd /remd_log2aremp2_log2b jfs 1 1 1 open/syncd /remd_log2bremp2_log3a jfs 1 1 1 open/syncd /remd_log3aremp2_log3b ... Pseudo-Random Passwords 27 1appvg2:LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINTtel_lv jfs 2 2 1 open/syncd /usr/telalertoracle_lv jfs 128 128 1 open/syncd /oracleoradata_lv jfs 128 128 1 open/syncd...
  • 70
  • 575
  • 0
Mastering unix shell scripting phần 6 doc

Mastering unix shell scripting phần 6 doc

... 1500 link #2 2.60.8c.2d.75.b1 1 123 30 0 108697 0 0en0 1500 10.10 yogi 1 123 30 0 108697 0 0lo0 16896 link#1 28 3 02 0 28 304 0 0lo0 16896 127 loopback 28 3 02 0 28 304 0 0lo0 16896 ::1 28 3 02 0 28 304 0 ... Jun 27 16:07 root pts/3 mrranger Jun 26 20 :55 - 20 :56 (00:00)root pts /2 mrranger Jun 26 20 :55 - 20 :56 (00:00)root pts/1 mrranger Jun 26 20 :55 - 20 :56 (00:00)...wtmp begins Jul 31 18 :20 ... 26 20 01 sysdumpcrw 1 root system 7, 1 Jul 26 20 01 sysdumpctlcrw 1 root system 7, 3 Jul 26 20 01 sysdumpfilecrw 1 root system 7, 2 Jul 26 20 01 sysdumpnullcrw-rw-rw- 1 root system 5, 0 Jul 26 ...
  • 70
  • 363
  • 0
Mastering unix shell scripting phần 7 pdf

Mastering unix shell scripting phần 7 pdf

... auto_ftp_xfer.ksh 20 0 PORT command successful.150 ASCII data connection for auto_ftp_xfer.ksh (10.10.10.1, 327 87) (22 7bytes). 22 6 ASCII Transfer complete. 24 6 bytes received in 0. 022 9 seconds (10.49 ... 07 07: 02 20 02 yogi_hp4_1ps accepting requests since May 07 07: 02 20 02 Listing 16. 12 lpstat -a and lpstat -p command output. (continues)Print Queue Hell: Keeping the Printers Printing 429 You ... technique in List-ing 17 .2. #!/bin/ksh## SCRIPT: tst_ftp.ksh# AUTHOR: Randy Michael# DATE: 6/ 12/ 20 02 # REV: 1.1.A# PLATOFRM: Not platform dependentListing 17 .2 Simple here document for...
  • 70
  • 347
  • 0
Mastering unix shell scripting phần 8 potx

Mastering unix shell scripting phần 8 potx

... -ltotal 12 drwxrwsrwt 2 daemon staff 5 12 Sep 17 20 00 calendardrwxr-xr-x 4 bin cron 5 12 Jul 26 20 01 crondrwxrwxr-x 7 lp lp 5 12 Mar 23 15 :21 lpdrwxrwxr-x 5 bin printq 5 12 May 01 20 : 32 lpddrwxrwxr-x ... lpddrwxrwxr-x 2 bin mail 5 12 May 06 17:36 maildrwxrwx 2 root system 5 12 May 06 17:36 mqueuedrwxrwxr-x 2 bin printq 5 12 Apr 29 11: 52 qdaemondrwxr-xr-x 2 root system 5 12 Jul 26 20 01 rwhodrwxrwsrwx 2 bin ... 2 bin cron 5 12 Feb 10 21 :36 .drwxr-xr-x 4 bin cron 5 12 Jul 26 20 01 -rw-r r 1 adm cron 20 27 Feb 10 21 :36 adm-rw 1 root cron 1 125 Feb 10 21 :35 root-rw-r r 1 sys cron 864 Jul 26 20 01 sysListing...
  • 70
  • 355
  • 0
Mastering unix shell scripting phần 9 docx

Mastering unix shell scripting phần 9 docx

... float_average.ksh shell script is in action in Listing 22 .14. [root:yogi]@/scripts# float_average.ksh -s 8 .22 389 65 - 32. 778 22 1The average of: .22 389 65 - 32. 778 22 1to a scale of 8 is 8.05 622 250Listing 22 .14 ... variable on each loop iteration:ADD=” 12 ADD=” 12 + 453.766”ADD=” 12 + 453.766 + 22 3.6”ADD=” 12 + 453.766 + 22 3.6 + 3.145 927 ”ADD=” 12 + 453.766 + 22 3.6 + 3.145 927 + 22 ”Using a Here DocumentWhen the ... [root:yogi]@/scripts# ./float_add.ksh -s 8 2 223 .545 3 32. 009976553The sum of: 2 + 22 3.545 + 3 32. 009976553to a scale of 8 is 557.554976553Listing 22 .3 float_add.ksh shell script in action.Floating-Point...
  • 70
  • 370
  • 0

Xem thêm

Từ khóa: nghiên cứu văn học dân gian từ góc độ type và motif những khả thủ và bất cập phần 2 pptxtài liệu cấu tạo nguyên lý hoạt động của chuột cơ và quang phần 2 pptxđồ thị smith smith chart phần 2 pptxtài liệu giáo trình dạy đọc tiếng nga 2 phần 25 pptxtài liệu giáo trình dạy đọc tiếng nga 2 phần 26 pptxhệ unix ngôn ngữ c ansi c iso c c phần 2 docbash bourne and korn shell scripting for programmers system administrators and unix gurus second editionphần 2linux shell scripting cookbookkỹ thuật các mã không an toàn phần 2 pointer arithmetic lập trìnhphần 1 tổng quan về máy tính phần 2 giáo trình word phần 3 internettìm hiểu chế bồng nga phần 2tài liệu nuôi tôm chinh thống phần 2giới thiệu sử nước việt phần 2ca dao tục ngữ chủ đề hát ru phần 2Báo cáo thực tập tại nhà thuốc tại Thành phố Hồ Chí Minh năm 2018Nghiên cứu sự hình thành lớp bảo vệ và khả năng chống ăn mòn của thép bền thời tiết trong điều kiện khí hậu nhiệt đới việt namNghiên cứu tổ chức pha chế, đánh giá chất lượng thuốc tiêm truyền trong điều kiện dã ngoạiNghiên cứu tổ chức chạy tàu hàng cố định theo thời gian trên đường sắt việt namGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitĐỒ ÁN NGHIÊN CỨU CÔNG NGHỆ KẾT NỐI VÔ TUYẾN CỰ LY XA, CÔNG SUẤT THẤP LPWANPhối hợp giữa phòng văn hóa và thông tin với phòng giáo dục và đào tạo trong việc tuyên truyền, giáo dục, vận động xây dựng nông thôn mới huyện thanh thủy, tỉnh phú thọPhát hiện xâm nhập dựa trên thuật toán k meansNghiên cứu, xây dựng phần mềm smartscan và ứng dụng trong bảo vệ mạng máy tính chuyên dùngNghiên cứu về mô hình thống kê học sâu và ứng dụng trong nhận dạng chữ viết tay hạn chếNghiên cứu tổng hợp các oxit hỗn hợp kích thƣớc nanomet ce 0 75 zr0 25o2 , ce 0 5 zr0 5o2 và khảo sát hoạt tính quang xúc tác của chúngNghiên cứu khả năng đo năng lượng điện bằng hệ thu thập dữ liệu 16 kênh DEWE 5000Thiết kế và chế tạo mô hình biến tần (inverter) cho máy điều hòa không khíQuản lý nợ xấu tại Agribank chi nhánh huyện Phù Yên, tỉnh Sơn La (Luận văn thạc sĩ)Tranh tụng tại phiên tòa hình sự sơ thẩm theo pháp luật tố tụng hình sự Việt Nam từ thực tiễn xét xử của các Tòa án quân sự Quân khu (Luận văn thạc sĩ)chuong 1 tong quan quan tri rui roGiáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtGiáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtTÁI CHẾ NHỰA VÀ QUẢN LÝ CHẤT THẢI Ở HOA KỲQUẢN LÝ VÀ TÁI CHẾ NHỰA Ở HOA KỲ