sed (stream editor)
Function Description: Use script to process text files.Syntax: sed [-hnv][-e][-f][text file]Additional Note: SED can process and edit text files according to script instructions.Parameters:-e or--expression= the input text file
Small knowledge (take PS as an example):
View command path which PScommand to help PS--helpCommand Complete manual: Man PS
Description
The PS full name is the process status (process state), and he is the one who provides information about the
SVN deletes all the. svn files
Copy Code code as follows:
Find. -name. Svn-type d-exec rm-fr {} \;
Linux CP/SCP Command +SCP command detailed
Name: CP
Use Rights: All users
How to use:
CP [Options] source dest
The relevant knowledge about the Linux traceroute command is as follows:
Through traceroute we can know the information from your computer to the Internet on the other end of the host is what path to go. Of course the path to a certain same
"The old Sys IPC still has several useful uses." Three types of IPC objects are shared memory, semaphores, and messages. "When you use these objects to IPC, you need to create a Key for each object." While it is theoretically possible to use any of
The key to using command-line arguments is that the shell script needs to interact with the person who is running the script.The bash shell provides command-line arguments to add data values after the command, command line options to modify the
Shell Getting Started Tutorial (1)-shell-JUSTKK's Column-Blog channel-csdn.nethttp://blog.csdn.net/justkk/article/details/43795131
Shell Getting Started Tutorial (2)-Variables and Parameters-JUSTKK-Blog
To define an array value:
The difference between an array variable and a scalar variable can be explained as follows.
Say that you are trying to show the names of various students as variable sets. Each individual variable is a scalar variable, as
The Linux shell can be user-defined functions and can be called casually in shell scripts.
The functions in the shell are defined in the following format:
[Function] funname [()]
{
action;
[return int;]
}
Description
1, can be with function fun
Display error when switching to virtual environment using PIPENV Shell: Attributeerror: ' Module ' object has no attribute ' run 'Can see the d:\program\python34\lib\site-packages\pipenv\shells.py file is the 62nd line error, the module does not
Shell Script Introduction
Shell is a scripting language
You can use logical judgments, loops, and other syntax
Functions can be custom-defined
The shell is a collection of system commands
Shell scripts enable automated
By default, there are always three files open, standard input (keyboard input), standard output (output to screen), standard error (also output to screen), and their respective file descriptors are 0,1,2. So let's take a look at the differences
Create a scriptThere are many different shells in Linux, but usually we use Bash (Bourne again shell) for Shell programming because bash is free and easy to use. So the script I've provided in this article is all about using bash (but in most cases
1, Date object turn timestamp current_day2, calculates the incremental timestamp, which is the increment of the loop per step one_day3, loop body calculation, date variable plus increment re-assign value4, time stamp back to date format
Create a scriptThere are many different shells in Linux, but usually we use Bash (Bourne again shell) for Shell programming because bash is free and easy to use. So the script I've provided in this article is all about using bash (but in most cases
Original link: http://codingstandards.iteye.com/blog/836625 (reproduced please specify the source)Description of UseThe exit command exits the current shell and can terminate the current script execution in a shell script.Common parametersFormat:
I recently half a year using Ali Dubbo to do development, and in the company vigorously promote, the original a bulky and not easy to maintain the large project into a number of relatively independent Java programs, the benefits are obvious, but
What is a shell? What is shelling? This is a question that is often confusing and often raised, but it is not naïve at all. When you want to hear about shelling and trying to understand it, it means you've been on a safe site for a while. Below, let'
1) Unix command:
Although any Unix command can be used in shell scripts, some more common commands are used. These commands are usually used for file and text operations.
Common command syntax and functions:
Echo"Some text": print the text on
Why shell programming?
In Linux, although there are a variety of graphical interface tools, ghost is still a very flexible tool. Shell is not only a collection of commands, but also a very good programming language. You can use shell to automate a
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.