Shell display with color font

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:

Time period parameter passed by Shell

#! /Bin/shD1 = 20111201.D2. = 20120625Time = $ (date + % s-d ''$ D2'')-$ (date + % s-d ''$ D1 ''))); # date differenceT = 'expr $ time/100' # Number of different daysFor (I = 0; I Do# Echo $ d1Perl XX. pl $ d1D1 = 'date-d' $ D1 'utc 86400 seconds' +

Linux Shell Learning

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

In Linux, regular cutting of nginx access logs and packaging of compressed shell scripts

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"

Location parameters in Shell $ #, $ *, $ @, $0, $1, $2... And special parameters $ ?, Meaning of $-and so on

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

The condition in shell determines the meaning of-Z to-D in IF.

[-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

Three sort algorithms (bubble/quick/Shell) bubble, fast sort, Hill ......

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 98 shell Language

  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

Introduction to Shell 1

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

Linux Shell Learning

"Hello World" shell scriptBased on the traditional program teaching example, we will introduce how to write shell script "Hello World. -------------------------------------------------------------------------------- #! /Bin/sh# Filename: HelloEcho

Shell script used to determine whether the IP address is correct

Shell script used to determine whether the IP address is correct[Copy link]     #! /Bin/bash Checkip (){ If echo $1 | egrep-Q '^ [0-9] {1, 3

Shell programming (3)

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

Linux Bash Shell (17): I/O redirection

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

Linux Shell programming learning notes

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 =

Call shell commands in pl/SQL

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

Linux script Shell command

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 encapsulation of shell scripts for wget

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.

How to obtain window shell folder thumbnails

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

Linux shell shortcut

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

Shell programming (an article about trigger)

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.

Total Pages: 541 1 .... 442 443 444 445 446 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.