0

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

Kỹ thuật lập trình

... 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
  • 15
  • 1,176
  • 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

Hệ điều hành

... 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
  • 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

Hệ điều hành

... 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ử...
  • 32
  • 432
  • 0
cac lenh trong linux bash ppt

cac lenh trong linux bash ppt

Hệ điều hành

... 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...
  • 4
  • 692
  • 1
Unit 6Combine the following sentencesuse if or that wheneverpossibledoc

Unit 6Combine the following sentencesuse if or that wheneverpossibledoc

Tư liệu khác

... 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...
  • 3
  • 168
  • 0
If or unless grammar exercise

If or unless grammar exercise

Ngữ pháp tiếng Anh

... 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...
  • 2
  • 302
  • 1
If or whether grammar exercise

If or whether grammar exercise

Ngữ pháp tiếng Anh

... …………………………… 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...
  • 3
  • 255
  • 1
when or if

when or if

Tiếng anh

... 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...
  • 5
  • 465
  • 0
The Linux Shell and BASH Scripting

The Linux Shell and BASH Scripting

Tin học

... 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...
  • 32
  • 396
  • 0
Các file khởi động trong ubuntu or linux

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

Hệ điều hành

... 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: ...
  • 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

Hệ điều hành

... 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...
  • 61
  • 356
  • 0
Tài liệu Writing a Script File in Linux pptx

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

Hệ điều hành

... 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...
  • 4
  • 442
  • 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

Kỹ thuật lập trình

... 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...
  • 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

Kỹ thuật lập trình

... 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...
  • 830
  • 3,559
  • 4
Install Oracle 11 on Linux docx

Install Oracle 11 on Linux docx

Kỹ thuật lập trình

... 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"...
  • 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

Cơ sở dữ liệu

... 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...
  • 17
  • 483
  • 0
Pro Oracle Database 11g RAC on Linux docx

Pro Oracle Database 11g RAC on Linux docx

Hệ điều hành

... 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...
  • 830
  • 1,832
  • 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

Cơ sở dữ liệu

... 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...
  • 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

Cơ sở dữ liệu

... 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...
  • 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

Cơ sở dữ liệu

... 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...
  • 226
  • 684
  • 0

Xem thêm