Syntax: WC [options] File ...
Description: This command counts the number of bytes, words, and lines in a given file. If no file name is given, read from standard input. The WC gives also the president count of all specified documents at the same
Shell--for in Cycle 2013-03-28 18:06:29 tags: for loop
Shell programming--for in loop-------for in format-------
For no $ variable in string do $ variable done a simple string enumeration of calendars, using for-in format the character of a
Both exec and source belong to the Bash Internal command (builtins commands), where you can view all the internal command information by entering man exec or man source under bash.
The bash shell commands are divided into two categories: external
For some Ubuntu geek, they sometimes prefer to use the command line to launch apps on the phone and debug our app in this way. We can enter into the shell of the phone in the following ways:
We can find the following pre-installed
If condition test common syntax
Test
[]
[[]]
())
Test command AND [] testing operator
Test
[]
(these two syntaxes are equivalent)
test operator
full Spell
Example No. 1As a shell writer, to avoid the user's input data is malformed, that is, to intercept the possible errors before the shell script is published, this example is to determine whether the data (or positional variables) entered by the user
First, Shell historyThe role of the shell is to explain the execution of the user's commands, the user enters a command, the shell interprets the execution of one, which is called Interactive (Interactive), and the shell has a way of executing the
1, print the system load every 3 seconds#!/bin/bashwhiletruedo uptime sleep3 Done2, save the monitoring results to a file, execute in the background, and then monitor the file changes with Tail-fSH while. sh &[112867#!/bin/bashwhiletruedo
8.10 Shell Special Character _cut command* Any of any characters? Any one character#注释符号\ de-Justification symbol| pipe character"$" the symbol with "!" "!$" means the last variable in the previous command";" Delimiter, use "~" User's home directory
Login Shell: A full login process is required to go to bash. That is, by entering the account and password to log into the system, the obtained shell is called the login shellnon-login Shell: The method of obtaining the Sbash interface does not
$ () and ' (anti-quote)In the bash shell, $ () and "(anti-quote) are used for command substitution.$ echo the last Sunday was $ (date-d "last Sunday" +%y-%m-%d)Get the date of the previous SundayThe reason for using $ ()1. "Easy to mix with" (single
The terminal realizes the reading and writing of the data stream in the file;The list of REDIRECT commands is as follows:
Command
Description
Command > File
Redirects the output to file. Write terminal data
a blog distinguishes the state return value in the shell -return-break-continue-exitFirst, The difference and contrast between break, continue, exit, return Condition and loop control and program return value command Knowledge table
Vulnerability overviewApache struts is an open source project maintained by the Pachitea (Apache) Software Foundation, an open-source MVC framework for creating enterprise-class Java Web applications. An arbitrary code execution vulnerability exists
1, the syntax of the script structure:Shell script is a "program" written using the function of the shell, which uses a plain text file (the file suffix is preferably sh file, which is convenient for us to manage), and writes some shell syntax and
Shell's sed command to delete a variable with a "date time and so on" methodThe SED command deletes the specified content and may be known, for example, if you want to delete the line containing "Badboy" in a file, use the following command directly:
Speaking of secure network access, we believe that the first thing we think of is secure shell, which is usually abbreviated as SSH. This is because SSH is easy to install, easy to use, and common. Generally, UNIX, Linux, and FreeBSD systems all
COM (Component Object Model, Component Object Model) is a binary and network standard created by Microsoft. It is also a component standard that Microsoft has vigorously promoted and widely recognized. In the com standard, the COM object is well
In VB, the external program is often run using shell commands. However, after creating the external process, it immediatelyIt will return to the next line of VB program and cannot execute the next line of command until the process ends,Or, you
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