''Causes sed Command Parsing to fail. The experiment is as follows:
Try to replace a single backslash with two backlash, that is\ Replace \\
$ Cat t1.sh#! /Bin/shA = 'echo 1 | SED's/\/g''Echo $
$./T1.shSed:-e expression #1, character 8:
Similar to awk Functions
Example 1
$ A = 'echo root: X: 0: 0: Root:/root:/bin/bash | cut-D: -F 1,5 'shuohailhl @ shuohailhl-PC/cygdrive/d $ echo $ aroot: Root
In the preceding example, the root: X: 0: 0: Root:/root:/bin/bash command is
This is a personal incremental version. Its functions are as follows:1. You can set password protection for the first access.2. You can perform n incremental backups and incremental restores.3. You can delete incremental time points.
If you want to
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
Answers to questions about how to create a server.
I. Role of peanut shells
First, let's take a look at the role of the peanut shell. Because the IP addresses obtained by ADSL dial-up access are different each time, the role of the peanut shell is
Lesson 5 shell contains mysteries
Last semester, Liu Bei accidentally met Lu Zhi, a food buyer, in the supermarket on campus near the mid-term exam. Suddenly, he had a strong impulse to get close to him. At that time, Lu Zhi had left the podium and
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
Exercise content:
When the.txt file exists under the folder, if the.txt file exists, a new a-1.txtfile is created. If the file does not exist, the t.txt file is created;
Three conditional expressions of if
1,
If condition 1;
[-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
By using the startup script, you can make the custom environment ready for use once and for all.These scripts run when the shell is created.The startup scripts run vary depending on whether the shell is used to log on to the shell or not.We use "Su-"
Not long ago, I saw two very interesting commands-script and srciptreplay, which can record terminal sessions to a file, that is, we can use terminal sessions to create command line skills video tutorials, you can also share session files with
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
Shell versionSH: Bourne shell, the original Unix shell.CSH: C shell.Ksh: Korn shell.Bash: Bourne again shell. Linux default shell.Tcsh: C shell extension.Pdksh: Ksh is not free. This is free.
Echo-n "Date and time is:"-N does not wrap.Echo "Your
Echo-e "/033 [32; 49; 1 m [done]/033 [39; 49; 0 m"Output result: [done]###########################The color of the text terminal can be generated using an ANSI unconventional character sequence. Example:
Echo-e "/033 [44; 37; 5 m me/033 [0 m
"Hello World" shell scriptBased on the traditional program teaching example, we will introduce how to write shell script "Hello World.
--------------------------------------------------------------------------------
#! /Bin/sh# Filename: HelloEcho
Preface
Quick edit shell command line
The most common cause is that Nux beginners say that the most annoying thing is Linux/Unix command lines. If you are an impatient person, you can first try the comprehensive exercises at the end of the article
Shortcut Operators
If you are familiar with the C language, you may like the following expressions:
[-F "/etc/shadow"] & echo "This computer uses shadow passwors"
Here & is a shortcut operator. If the expression on the left is true, execute the
Use a Pseudo Terminal to interact with Shell in Linux
-- Lihn1987
Gdb is always used for program debugging in the company recently. As the debugging level increases, the omnipotent printf becomes increasingly useless. If you can't do it, you will
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.