Format: Echo "/033 [text background color; font color M string/033 [control code"If the font color is displayed, the font color can be fixed to 0 MB.Format: Echo "/033 [text background color; font color M string/033 [0 m"
Color Range: 40-49
40:
Regular Expression
$
Matches the end position of the input string. If the multiline attribute of the Regexp object is set, $ also matches '/N' or'/R '. To match the $ character, use/$.
()
Mark the start and end
I wrote this article before.ArticleHowever, this log is missing due to the previous data loss fault. So I re-wrote this script and posted it again to everyone.
#! /Bin/bashlogs_path =/home/logs/www/arch_log_path =$ {logs_path} $ (date-d "yesterday"
Some special symbols are often seen in bash shell. I collect them for reference:
Location parameters:For more information, see ABS (Advanced bash shell). The English version of ABS is the same.
$0, $1, $2, and so on...Location parameter, which is
[-A file] true if the file exists.
[-B file] If the file exists and is a special block file, it is true.
[-C file] If the file exists and is a special word file, it is true.
Device Files: block device files with a single character. The unit of
Preparing for Job Review in the last two days. This section summarizes the three sorting algorithms mentioned in the internal sorting chapter of the data structure. Simple implementation.
// Sort. CPP: defines the entry point for the console
Windows 98ShellLanguage
Yang shanhe
The Senior cfan from Dos crawlers knows that the batch processing language "batch" edits a batch processing file and can be executed in DOS immediately to complete tasks that do not require too much
All Unix users should understand how to use the Korn shell script. By writing shell scripts, You can automate many tasks and save a lot of time. It seems daunting at first glance, but you can use it skillfully as long as you follow the correct
"Hello World" shell scriptBased on the traditional program teaching example, we will introduce how to write shell script "Hello World.
--------------------------------------------------------------------------------
#! /Bin/sh# Filename: HelloEcho
Instance
General programming steps
Now let's discuss the general steps for writing a script. Any excellent script should have help and input parameters. And write a pseudo script (framework. sh) that contains the framework structure required by
This article is one of the seventh chapter Input/Output and Command-Line Processing of Learning the bash Shell 3rd Edition. We have learned the basic IO redirection operations of shell:>,
Cmd1|Cmd2: Pipe, SetCmd1Standard outputCmd2Standard
I. Shell VariablesIt mainly includes local variables and environment variables.
1. Local variable -- Used in the script currently running by the user1)Define local variablesFormat: variable-name = valueExample: [root @ jike1/root] # LOCALTEST =
Use the dbms_pipe package and create a daemon running on the OS
I think this method is complicated. I still need to use Pro * C. I didn't try it. Here is an example.
Use Java's getruntime(cmd.exe C
Java uses a lot of such advantages.
1) write a
Before giving you a detailed introduction to linux compilation, let's first understand the Linux script Shell command. The following explains how to use arbitrary unix commands in shell scripts.
Basic syntax Introduction
1. Start
The program must
Simple shell script encapsulation for wget
Article: http://blog.csdn.net/5iasp/article/details/8862303
Author: javaboy2012Email: yanek@163.comQq: 1046011462
Purpose: capture a url and save it to a specified file in the specified directory.
This problem is related to the shell Interface Programming part. When a complicated problem occurs, no matter which part of the folder is operated, the Operation should start from the root node (Desktop) of the shell file system, until you find the
From: http://blog.sina.com.cn/s/blog_7556be720100ryp2.html
CTRL + P repeat the previous command
CTRL + a jump to the first characterCTRL + x same as above, but once again, it will return to the original locationCTRL + B move one character forward
Li Sanhu, the second International Class 2 of the 2010 International Software Institute of Wuhan University, hasn't written any logs for a long time. Today, I wrote one.
I recently feel that the book is still very classic for learning a new language.
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