linux bash script if or

Tài liệu Cơ bản về Linux Shell Script pdf

Tài liệu Cơ bản về Linux Shell Script pdf

... trợ việc sử dụng lệnh phức tạp nh if- then-else, for/while Phần dới giới thiệu đến cấu trúc 6.1 Cấu trúc vòng lặp: for Cấu trúc vòng lặp for đợc xây dựng nh sau: for in

Ngày tải lên: 15/12/2013, 20:15

15 1,2K 24
Tài liệu Cơ bản về Linux Shell Script ppt

Tài liệu Cơ bản về Linux Shell Script ppt

... trợ việc sử dụng lệnh phức tạp nh if- then-else, for/while Phần dới giới thiệu đến cấu trúc 6.1 Cấu trúc vòng lặp: for Cấu trúc vòng lặp for đợc xây dựng nh sau: for in

Ngày tải lên: 16/12/2013, 13:15

15 721 3
Chương 7: Hệ điều hành Linux - Bash shell

Chương 7: Hệ điều hành Linux - Bash shell

... lại sau $ export PATH=$PATH:/usr/local/bin:$HOME/bin: $ source ~/ .bash_ profile $ cat ~/ .bash_ profile # Get the aliases and functions if [ -f ~/.bashrc ]; then ~/.bashrc fi # User specific environment ... && /myfile Linux Fundamentals HCMUNS 19 Phát biểu điều kiện  Phát biểu IF if [ exp ]; then statements; elif [ expr ]; then statements; else statements; fi Linux Fundamentals  Ví dụ if [ “$1” ... ll='ls -l –-color=tty' $ alias la='ls -la -–color=tty' $ unalias la $ alias Linux Fundamentals HCMUNS Tuỳ biến môi trường   Thiết lập biến môi trường Lưu file ~/ .bash_ profile, ~/.bashrc để sử...

Ngày tải lên: 09/05/2014, 11:11

32 432 0
cac lenh trong linux bash ppt

cac lenh trong linux bash ppt

... fmt fold for format free fsck ftp function Reformat paragraph text Wrap text to fit a specified width Expand words, and execute commands Format disks or tapes Display memory usage File system ... first part of file(s) Command History Print or set system name id if ifconfig import install Print user and group id's Conditionally perform a command Configure a network interface Capture an X server ... ps pushd pwd Modify a user password Merge lines of files Check file name portability Test a network connection Restore the previous value of the current directory Prepare files for printing Printer...

Ngày tải lên: 22/06/2014, 01:20

4 692 1
Unit 6Combine the following sentencesuse if or that wheneverpossibledoc

Unit 6Combine the following sentencesuse if or that wheneverpossibledoc

... is working very hard for her final exanl Her parents are very pleased 21 The oil leaking from a ship accident is polluting the sea It is appareir 22 The students have to make their own reports ... transportation They will save a lot of gas —> 25 The teacher is worried The students won't keep the camping ground clean after their trip 22 There was a lot of garbage on the beach this morning ... were killed Somebody burned the forest The Dong Nai river is polluted Many factories let their waste chemical: run directly into the river People need to purify the water in the river It is so...

Ngày tải lên: 31/05/2015, 14:00

3 168 0
If or unless grammar exercise

If or unless grammar exercise

... if b) unless 10 You will look prettier ……………… you don’t wear so much make-up a) if b) unless Answers If you eat too much, you will fall ill If he doesn’t mend his ways, he will lose his job If ... there is a train strike I will quit my job if they don’t offer me a raise I will be surprised if she doesn’t recognize me 10 You will look prettier if you don’t wear so much make-up Be first ... ill I wouldn’t have won if he hadn’t helped me Unless he mends his ways, he will land in serious trouble I will take the job unless the pay is too low I will be back tomorrow unless there is a...

Ngày tải lên: 11/07/2015, 19:40

2 302 1
If or whether grammar exercise

If or whether grammar exercise

... …………………………… she likes it or not a) whether b) if c) Either could be used here Answers I am not sure whether /if I will have the time She asked me if / whether I was working We discussed whether ... whether b) if c) Either could be used here He asked me ………………………… I had ever been to Europe a) if b) whether c) Either could be used here I don’t know ………………………… she will come a) whether b) if c) ... whether to go on a diet or not Whether she can get along with your mother is another matter He asked me whether / if I had ever been to Europe I don’t know whether / if she will come 10 Janet...

Ngày tải lên: 11/07/2015, 19:40

3 255 1
when or if

when or if

... the washing-up some serious work a lot of damage (to something) an announcement or a speech an application (e.g for a driving test) a sound or a noise one's hair or one's teeth a lot of harm ... participle of the verb to finish So if your colleagues say 'We're finished for today', they are using it as an adjective If they say 'We've finished work for today', they are using it as the ... the washing-up some serious work a lot of damage (to something) make an announcement make an application (e.g for a driving test) make a sound or a noise one's hair or one's teeth a lot of harm...

Ngày tải lên: 18/06/2013, 01:26

5 465 0
The Linux Shell and BASH Scripting

The Linux Shell and BASH Scripting

... Example of Script The Saigon CTT  $ more example _script #!/bin /bash /usr/bin/nmbd -D /usr/bin/smbd -D The Saigon CTT  The Linux Shell  Shells : Bourne (sh), Bourne Again (bash) , Korn (ksh), ... chacracter in IFS $@ A list of ALL as separate string $# Number of parameters on included the command line  The shift command will shift the positional parameters one or more position to the left or right ... something more than one  Loop commands : for, while, until The Saigon CTT  The for loop  Syntax : for in #list of commands to done The Saigon CTT  The for loop Example #!/bin/bash...

Ngày tải lên: 24/06/2013, 01:25

32 397 0
Các file khởi động trong ubuntu or linux

Các file khởi động trong ubuntu or linux

... sau đăng nhập, bạn tìm thấy file bash_ profile thư mục /home/vnexperts Bạn xem nội dung bash_ profile lệnh cat (hoặc nano, less, more ) sau: Như bạn thấy file bash_ profile chứa thông số thiết lập ... DOS .bash_ profile gọi thực thi người dùng đăng nhập vào tài khoản tương ứng họ Để viết lệnh điều khiển bash_ profile bạn sử dụng ngôn ngữ lập trình Shell script Cẩn thận hơn, hệ điều hành Linux ... thoát khỏi phiên (sessions) làm việc hành (logout) cách gọi thực thi file bash_ logout Bạn xem nội dung file bash_ logout lệnh more sau: ...

Ngày tải lên: 17/10/2013, 21:28

4 800 1
Tài liệu Learning DebianGNU Linux-Chapter 13. Conquering the BASH Shell pptx

Tài liệu Learning DebianGNU Linux-Chapter 13. Conquering the BASH Shell pptx

... by AT&T's System V Unix /bin/bsh BASH /bin /bash shell The standard shell for Linux, based on the original Unix Bourne shell According to its man page, /bin /bash2 BASH is "ultimately intended" to ... solution, the shell is more often the tool of choice By creating solutions in the form of shell scripts, solutions can be stored for subsequent reuse Perhaps even more important, shell scripts can be ... you must export the shell variable To so, use the export command, which has the form: export variable where variable specifies the name of the variable to be exported A shorthand form of the command...

Ngày tải lên: 14/12/2013, 13:15

61 357 0
Tài liệu Writing a Script File in Linux pptx

Tài liệu Writing a Script File in Linux pptx

... instructor for the correct login for the computer At the command prompt, type: mkdir mybkup cd mybkup touch file1 file2 file3 This will create a small subdirectory in the /home directory called ... type: wq To verify that the backup script exists, at the command prompt type: ls Does the file “backup” exist in this directory? Y/N To verify that the contents of the backup script, at ... the mybkup directory From the /home/studentA5 directory locate the original mybkup file, type: ls –R mybkup Is the directory mybkup there? Y/N To delete the mybkup directory, type: rm –fr...

Ngày tải lên: 18/01/2014, 05:20

4 443 1
Tài liệu Pro Bash Programming: Scripting the GNU/Linux Shell doc

Tài liệu Pro Bash Programming: Scripting the GNU/Linux Shell doc

... as short as possible They are often the first two consonants of a descriptive word (for example, mv for move or ls for list) or the first letters of a descriptive phrase (for example , ps for process ... No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, ... inequality, for nonempty string or null string, and in bash for alphabetical ordering The = operator tests for equality, in other words, whether they are identical; != tests for inequality bash also...

Ngày tải lên: 17/02/2014, 17:20

257 298 3
Tài liệu Pro Oracle Database 11g RAC on Linux docx

Tài liệu Pro Oracle Database 11g RAC on Linux docx

... Oracle Unbreakable Linux and receive support directly from Oracle for the Oracle Enterprise Linux operating system You can also subscribe to Oracle Unbreakable Linux and receive support for Oracle ... discretion For those who choose Unbreakable Linux for the associated Linux support from Oracle, the choice of hardware platforms is more defined than it is for other hardware platforms for which the Oracle ... Enterprise Linux without using other Oracle software, or you can use an alternative certified Linux distribution to run Oracle software and arrange support accordingly for both Linux and Oracle—the...

Ngày tải lên: 17/02/2014, 17:20

830 3,6K 4
Install Oracle 11 on Linux docx

Install Oracle 11 on Linux docx

... ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1 ORACLE_SID=EDU11 PATH=$PATH:$ORACLE_HOME/bin LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib ... cho ORACLE_HOME_LISTNER (dòng 53): ORACLE_HOME_LISTNER=$ORACLE_HOME Tạo file có tên oracle thư mục /etc/init.d/ với nội dung sau: #!/bin /bash # # oracle Init file for starting and stopping # Oracle ... Database Script is valid for 10g and 11g versions # # chkconfig: 35 80 30 # description: Oracle Database startup script # Source function library /etc/rc.d/init.d/functions ORACLE_OWNER="oracle" ORACLE_HOME="/u01/app/oracle/product/11.1.0/db_1"...

Ngày tải lên: 07/03/2014, 04:20

7 434 0
DB2 9.7: Chạy các ứng dụng Oracle trên DB2 9.7 cho Linux, UNIX và Windows ppt

DB2 9.7: Chạy các ứng dụng Oracle trên DB2 9.7 cho Linux, UNIX và Windows ppt

... liệu tương thích-Oracle: o o db2 create database mydb pagesize 32 K db2 update db cfg for mydb using auto_reval deferred_force Khởi động IBM Data Movement Tool kết nối vào sở liệu Oracle DB2 (xem ... Phép toán SQL Trong Oracle, MINUS (Trừ) sử dụng thay cho EXCEPT (Loại ra) để tập MINUS kết trừ tập khác SELECT INTO Cấu trúc FOR UPDATE SELECT INTO cho phép trích hàng khỏi DB2 FOR UPDATE với mục ... dựa vào Oracle lẫn DB2 Cả PL/SQL SQL PL đưa mã máy ảo cho SQL Unified Runtime Engine DB2 Do đó, theo thiết kế, PL/SQL lẫn SQL PL thực tốc độ Do hạ tầng trình gỡ rối gắn trực tiếp vào SQL Unified...

Ngày tải lên: 18/03/2014, 05:20

17 483 0
Pro Oracle Database 11g RAC on Linux docx

Pro Oracle Database 11g RAC on Linux docx

... Oracle Unbreakable Linux and receive support directly from Oracle for the Oracle Enterprise Linux operating system You can also subscribe to Oracle Unbreakable Linux and receive support for Oracle ... discretion For those who choose Unbreakable Linux for the associated Linux support from Oracle, the choice of hardware platforms is more defined than it is for other hardware platforms for which the Oracle ... Enterprise Linux without using other Oracle software, or you can use an alternative certified Linux distribution to run Oracle software and arrange support accordingly for both Linux and Oracle—the...

Ngày tải lên: 24/03/2014, 01:21

830 1,8K 0
oracle9i administrator's reference for unix systems aix-based systems, compaq tru64 unix, hp 9000 series hp-ux, linux intel, and sun solaris

oracle9i administrator's reference for unix systems aix-based systems, compaq tru64 unix, hp 9000 series hp-ux, linux intel, and sun solaris

... Support Identifier) or SAC (Support Access Code) number if applicable or complete contact details, including any special project information OracleMetaLink OracleMetaLink is an Oracle Corporation ... whether the coraenv or oraenv script prompts for the value of the ORACLE_SID or ORACLE_HOME environment variable If the value is NO, the scripts not prompt; otherwise they Syntax A string Specifies ... list of directories: directory1:directory2:directory3 Example /usr/dt/lib:$ORACLE_HOME/lib Function Specifies the default directory for temporary files; if set, tools that create temporary files...

Ngày tải lên: 07/04/2014, 15:57

226 658 0
oracle9i administrator's reference for unix systems aix-based systems, compaq tru64 unix, hp 9000 series hp-ux, linux intel, and sun solaris

oracle9i administrator's reference for unix systems aix-based systems, compaq tru64 unix, hp 9000 series hp-ux, linux intel, and sun solaris

... Support Identifier) or SAC (Support Access Code) number if applicable or complete contact details, including any special project information OracleMetaLink OracleMetaLink is an Oracle Corporation ... whether the coraenv or oraenv script prompts for the value of the ORACLE_SID or ORACLE_HOME environment variable If the value is NO, the scripts not prompt; otherwise they Syntax A string Specifies ... list of directories: directory1:directory2:directory3 Example /usr/dt/lib:$ORACLE_HOME/lib Function Specifies the default directory for temporary files; if set, tools that create temporary files...

Ngày tải lên: 07/04/2014, 16:30

226 594 0
oracle9i administrator's reference for unix systems aix-based systems, compaq tru64 unix, hp 9000 series hp-ux, linux intel, and sun solaris

oracle9i administrator's reference for unix systems aix-based systems, compaq tru64 unix, hp 9000 series hp-ux, linux intel, and sun solaris

... Support Identifier) or SAC (Support Access Code) number if applicable or complete contact details, including any special project information OracleMetaLink OracleMetaLink is an Oracle Corporation ... whether the coraenv or oraenv script prompts for the value of the ORACLE_SID or ORACLE_HOME environment variable If the value is NO, the scripts not prompt; otherwise they Syntax A string Specifies ... list of directories: directory1:directory2:directory3 Example /usr/dt/lib:$ORACLE_HOME/lib Function Specifies the default directory for temporary files; if set, tools that create temporary files...

Ngày tải lên: 07/04/2014, 16:51

226 684 0
w