During this period of time, I was engaged in big data research. Where should I find a large amount of data? Well, some automatic generation tools on the Internet do not meet my own needs, so I wrote one myself, A script that can generate a large
Digress: Recently, due to an attempt, we installed and set the highly recommended zsh to replace the default Bash. After a while, we found that there were a lot of things, but the same problem was also exposed, for example, there is a problem with
From: http://xierongzhong1.blog.163.com/blog/static/5232328620102921658692/
Shell may often see:>/dev/null 2> & 1
Command results can be defined in the form of %>
/Dev/null indicates an empty device file.
> Indicates the
Shell script Learning (III): Shell functions and some common symbols and commands
I. Shell functions
Like C, Shell functions encapsulate commands and statements that have fixed functions and are usually used repeatedly in a single function, if you
Tianwaifeixian-level Linux Shell Command
Time:Source: wowubuntu.com
This article is compiled from commandlinefu.com (Catonmat) series of articlesTop Ten one-liners fromcommandlinefu explained. As a website recommended by users to use the most useful
1. Create and run Shell programsWhat is a shell program? Simply put, a shell program is a program that contains several rows.Shell or Linux Command file.Like programming in advanced languages, writing a shell program requires a text editor, such as
Sometimes in bash shell, we need to obtain user input information, such as user name and password. The password cannot be displayed... In the face of such requirements, the practical command read can be implemented.
Read-P "input your Username:"
How to extract the line Content Code specified by the file:
If you only want to view the first five lines of the file, you can use the head command,For example: Head-5/etc/passwd
If you want to view the last 10 lines of the file, you can use the
Finally, we will introduce the common loop in shell script design ). The so-called loop is a piece of code in the script that is repeatedly executed under certain conditions.There are three types of commonly used loop in bash shell:** While*A For
Http://blog.csdn.net/zmxj/archive/2009/02/25/3937372.aspx
The wscript. Shell object provides the run and exec methods. Recently, the project needs to use pscp In VBScript to copy files from the Linux server. The exec method is used. The following
I have been studying Linux for a week and a half. I wrote more than 20 shell scripts under the pressure of Marco Polo... Shell regular expressions, awk statements, program execution streams, test statements, sed statements, functions, and other
Question:
1.Extract the rows that contain "warning" or "Fatal" and do not contain "ignor" from the. log file, and then extract the 5th fields separated ":".
2.Write a script and only want to perform simple subtraction. A prompt is required to enter
Before calling shell, you must follow these steps: (perform operations in the E: disk root directory as an example)1. force change the current drive: chdrive "e"2. force change the default working directory: chdir "E :/"After completing the
In the past few days, when writing Android. mk, sometimes I always want to print some variables or something. If ECHO is not available, I can find a way to access the Internet.
Finally, I found such an article quite well.
Address:
Unix shell programming (3)-Regular Expressions of Unix shell
Match any single character: Period (.)For example, "R." indicates the pattern that matches "R" with any character.
Match the first line: ^For example, ^ George indicates matching rows
1. system environment variables after the user logs on to the system:$ Home user's own directory$ Path: the directory to be searched during Command Execution$ TZ Time Zone$ Mailcheck the number of seconds to check whether a new letter exists$ PS1
Shell programming notes (4)-text filtering Author: sunwill_chen published on: attribute: Original Copy Link
1. Regular Expression(1) Regular Expressions are generally used to describe the special usage of the text mode. common characters
Today's group asked a question:Echo 123 | md5sumBa1f2511fc30423bdbb183fe33f3dd0f-Php-R "Echo MD5 ('20140901 ');"202cb962ac59075b964b07152d234b70The MD5 values of the two are inconsistent, so there are many interesting solutions:1 MySQL
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