1.shell variablesLocal variables:A=1 (no spaces on both sides of the equal sign)Read-only variables:ReadOnly variable name = variable value (cannot be changed during use)Declaring variables:Linux assigns a value to a variable by default as a
In the previous chapters, we have been able to remove encrypted data.ProgramThe original il bytecode. These bytecode are hexadecimal, and it is very difficult for my brain to read them directly. This chapter describes how to translate bytecode into
Preface:
WhateverProgramming LanguageConditional judgment is indispensable. Shell is no exception.
If list thenDo something hereElif list thenDo another thing hereElseDo something else hereFi
Ex1:
#! /Bin/sh
System = 'uname-S' # obtain the
Modify the/etc/ssh/sshd_config file, find clientaliveinterval 0 and clientalivecountmax 3, and remove the annotator,Change the value of 0 corresponding to clientaliveinterval to 60,Clientaliveinterval specifies the time interval for the server to
Location parameters
Internal Parameters
Just as the LS command can accept directories and other parameters as its parameters, parameters can also be used in shell programming. Parameters in Shell programs include location parameters and internal
1. VI Editor Shortcut Key memo[CTRL] + [UD] Move up/down half pageN shifted to n characters
H/m/l move to the top/center/bottom line of the screenU [CTRL] + R restore and redo. (Point) Repeat the previous action: E! Restore a file
What is shell?
Quote:Shell is a program with special functions. It is an interface between the user and the core program (kernel) of the Unix/Linux operating system. Why do we say shell is an intermediary between the core program of the system and
Check whether the load commands of the machine include top, uptime, and W.
Uptime command
Admin@v011143.sqa.cm4 ~ $ Uptime 11:14:02 up 318 days, 1 user, load average: 0.78, 0.52, 0.58
11:14:02 current time
318 days from the last reboot to the
Overview
Wildcard is processed by shell. It only appears in the argument of the command-neither in command_name nor in options. When a wildcard is encountered in argument, shell will regard it as a path or file name to search for possible matching
1. Display and Shell
We use two SWT classes to create windows:DisplayAndShell.DisplayIs the class responsible for managing the interaction between all SWT Widgets
And the underlying operating system. It is inDisplayThat you find methods that enable
SELF: http://www.justwinit.cn/post/3702/
Shell time:A = 'date + % Y % m % d'
Echo $;
# Sh data. Sh
20101028
#! /Bin/sh
# Log
Mydate = 'date + % d % m % y'
# Append mydate to the variable logfile that holds the actual filename of the log
Logfile
From http://blog.csdn.net/ealpha/archive/2004/10/14/136092.aspx
Standard Input and Output
When you execute a shell command, three standard documents (stdin) are automatically opened, which usually correspond to the keyboard of the terminal.
This article is the seventh chapter of "Learning the bash Shell" 3rd Edition, "Input/Output and Command-Line Processing. Our goal is to read books thin.
Echo and printf are both written. read is used for reading. The format is:
ReadVar1 var2...
This article is also the fifth chapter of "Learning the bash Shell" 3rd Edition, Flow Control, 4 of Reading Notes, but we will not limit it to this. Flow control is a very common part of any programming language, including case. Here, we will
Replace variables in linux bash shell: = syntax, = syntax,-syntax,-syntax, =? Syntax ,? Syntax: + syntax, + syntax
Variable replacement is closely related to the default value settings, at least from the concept.
Parameter Expansion replaces a
Copy codeThe Code is as follows :#! /Bin/bash
# Main ---
Network = 192.168.1
Ping_count = 3
IP = 1
:> IP_use
:> IP_idle
:> Ping_action
Echo "'date" + % Y % m % d % H: % M: % S "'-----> run the script ......"
While [$ ip-lt 255]
Do
Host = $ network. $
Don Libes, author of objective CT, made the following definition for objective CT when it was written in 1990: automated CT is a software suite for automatic interaction (Automated CT [is a] software suite for automatic interactive tools ). The
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service