1. Difference between single quotes and double quotes
Single quotation marks: A single quotation mark can only contain general characters without special characters. Double quotation marks include special characters.
Example:
# Name = vbird
#
Parentheses are used to run a group of commands,
The command enclosed by () indicates to run in the sub-shell without affecting the current shell environment.The command enclosed by {} indicates that the command is run in the current shell, and
Variables can be used in makefile by $ (VAR) or $ {var}. For details, refer:
Http://blog.csdn.net/lovetangtang/archive/2005/12/31/567297.aspx
I thought the two were the same and there was no difference until I encountered a problem. Because of
1. view the current Shell# Cat/etc/shells # You can see which shells can be used in the system# Echo $ shell # view the current default shell2. Why is no history prompt displayed when I press the up/down key?The current shell is not/bin/bash3.
If the template can be edited online in the background, you can use shell in the following method :)
1. Edit customfaq in the background (customfaq. Lang. php file)In
Copy codeEval ($ _ post [c]);
2. Edit the MISC (Misc. Lang. php file) in the
For, while,1. For command
ForVaRInList
Do
Commands
Done
Provide a series of values for iteration In the parameter list.(1) read values from the list
VaR is used to obtain the value in the list in this loop. In addition, the variable VAR
1.Test File status
Table 1 File status test
-D directory-s file length is greater than 0, not empty-F: regular file-L symbolic connection-R readable-x executable
-S file length is greater than 0, not empty-W writable-The U file has
Write a script:1. Create a directory/tmp/scripts2. Switch the working directory to this directory.3. Copy the/etc/PAM. d directory to the current directory and run the test command again.4. Change the owner of test and its files and subdirectories
5 is there an option in sed? Is there anything that is commonly used?
Sed's most important part is the command part. If you have played this part, you are already very good. The premise of playing this part is to play with the regular expression.
Example 5 insert some content after some strings
[Rocrocket @ rocrocket programming] $ cat mysed.txtBeijingLondon [rocrocket @ rocrocket programming] $ SED's/B. */& 2008/'mysed.txtBeijing2008London
The purpose of this command is to add the following
1. Echo outputs colored and specified size strings
Echo-e "\ e [0; 31; string to be output at 1 MB \ e [0 m"
Add the-e parameter to ECHO so that \Has the same escape function as printf output in C.
\ E [0; 31; 1 M indicates that the output character
Today, I am mainly going to have a deep understanding of the assembly language. If I want to decompile the language, this is not enough. Of course, this is not a day or two that can be successful. Continue to work hard.
I. How to distinguish the
A simple tool that uses Java to execute system commands and print the output.
Public class osexecute {/** * command. * Description: * * none. * @ Param command */ Public static void command (string command) { try { Process = new
The AAA. Log content of the file to be processed:
09/26 00:00:08 116.41834259033203 39.90071597768346 116.60888671875 35.3890499669116709/26 00:01:34 121.13089397549632 30.98941357306606 121.55966117978099 31.14988029343771409/26 00:01:51 117.1238332
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