1. Conditional Test
Use the test command for files, strings, and numbers
Use the expr command for numbers and strings
Expr command to test and execute numerical output
1. Test File statusTest generally has two formats:Test Condition[Conditon]-D
$ # Number of Script Parameters $ * display all parameters passed to the script in a single string. Unlike the location variable, this option parameter can contain more than 9 $ ID of the current process running the script $! The ID of the last
Abstract: For the current software industry, the purpose of encryption is to seek as long as possible not to be decrypted, during which time the development investment and new product versions are withdrawn. The shell method can be used
The shell is a method that automatically protects executable files.ProgramOfSource code. You can use the toolkit to add a protection layer to your application. The shell uses a variety of methods-such as multi-layer protection, anti-debugging,
For example, most insurance industry associations and insurance companies in different regions communicate with each other through text,
This method is very flexible, and it is very easy to post-process with a pack! However, if I give you an MDB
Linux Shell script basic learning Lecture 3: When we introduced shell commands and Process Control in the previous section, we could not talk about process control due to space limitations, today, we will only introduce the first three parts of if
Linux Shell script basics if you only look at the previous theoretical section, although there are some examples, but it is not systematic enough, here we will show you a specific example of Linux Shell script programming, to help you learn and
Style files are often processed row by row. In Shell, how to obtain each row of data, then process the row of data, and finally read the next row of data can be processed cyclically. There are multiple solutions:
1. Run the READ command.
The
WriteCode
Be preparedProgramAfter it becomes easier to learn what to do and how to use a program, a programmer must record his ideas and tell the computer what he wants. This is the so-called code to be used. Generally, organize your own thinking
I. Practice
In the current directory, You need to rename all the files in the format of school1, school2 ...... And so on
#! /Bin/bashEcho hello;
A =1;ForI in *;DoEcho$ I;MV$ I "School $";A = $ (($+1));#A = 'expr $ A + 1' doesn't seem to
1. binary output file
Cat can open text files and cannot output files in binary format. Both the OD command and hexdump can complete the binary output task as follows:
(1) OD command
Od-tx4-an-v-W1 dos_setenv.sh
-T indicates the output type.-TX
Passing parameters to triggers in Javascript using the shell packaging method
Reference address: http://callof.net/Site/pView.Asp? Id = 1270
In a well-structured web page, not only must the
ArticleDirectory
Cat
Chgrp
Chmod
Chown
Copyfromlocal
Copytolocal
Count
CP
Du
DUS
Expunge
Get
Getmerge
Ls
LSR
Mkdir
Movefromlocal
Movetolocal
MV
Put
Rm
RMR
Setrep
Stat
Document directory
Use the top script to retrieve the CPU of a process:
Add User:
IP address access statistics:
Calculate the sum of 2 numbers
Text Analysis
File Sorting
Print the swap partition size of the Local Machine
Output the time
Features required last time ~ The problem can be solved only by asking for advice on csdn ~ Hey hey ~
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#! /Bin/sh
Voicedir = "/var/www/html /"
Classic sorting algorithm-shell sort
Shell sort is based onInsert sortIs also divided into two parts,
Part 1: Introduction to Hill sorting
The second part is how to select keywords. Selecting keywords is the key to Hill sorting.
Introduction to the
Recently, I am working on a project, because some functions are implemented using ORACLE package, but it is very good to use UNIX scripts, therefore, an executable host request is mounted on the AP to solve this problem.
I think this is a little
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.