In our work, we often need to replace and add URLs from the text using SED. However, we often encounter the ambiguity in the SED of special characters in the URL so that it takes a lot of time to test when writing a bash script. So what are the special characters that create ambiguity?
#这些都需要转义, |, \,/, ^, *, (,), [,], {,}, ',?
Which, to ",/,?" " for the most important needs to transfer. For example:[Email protected] test]$ url="HTTP://
One:The shell is the shell of the Linux/unix system, and it can be understood as the command line interface, where you enter and execute the command line.Bash (born again shell) is one of the shell's most commonly used shells. you run on your Linux: PS | grep $$; If you run the result as bash, it means that the current default shell is bash.The shell is basically a command interpreter, similar to the commands under DOS. It receives user commands (such
Help for Power Users and SYS adminsbash pocket reference
If you want to get to the heart of Mac OS X, Linux, and other UNIX systems, you need to know how to work with the bash shell.
If you want to learn more about Mac OS X, Linux, or other UNIX systems, you must understand how to deal with Bash.
This concise little book puts all of the essential information about Bash
BASH command and usage summary, bash usage Summary
I need to write a Linux script in my recent work and use a lot of BASH commands. To avoid forgetting it later, I will write them down here one by one. It may be messy. Just take a look. If something is wrong, you are welcome to correct it.
1, export VAR =...
This command runs in Shell to make the script that runs
SHELL script strategy (learning notes) -- 1.5 bash environment configuration process, -- 1.5 bash
From the perspective of user login, shell is divided into two types:
Logon shell: If you log on through a terminal, use the su-username command to switch users.
Non-interactive shell: for example, you can use the su username command to switch between users. Open the command terminal and shell script in the grap
Many programmers put their own code on GitHub, which makes it easier for them to manage and to be consulted. So I've been working on this for a couple of days, and now just summarize how to use GitHub and GitHub for Windows.1, now GitHub register an account, in the process of registration, you may need to choose the wa
Linux new user with ssh remote login display-bash-4.1 $, ssh-bash-4.1
There are many methods on Baidu, most of which are in the form of adding PS1 code in. bash_profile, and then logging on to the account again... This method is difficult to achieve the desired results.
The root cause of this problem is the lack of Shell environment!
[Root @ localhost ~] Su-papi1Last login: Wed Jan 24 04:11:41 EST 2018
Github website introduction, and use git commands to manage github (detailed description), githubgit
Learn this chapter:
1)Familiar with github website
2)Remotely manage github using git commands,
3)You do not need to enter the account and password to use the ssh key for git commands.
1. First, familiarize yours
Bash variable types and bash Variables
Local variable: it acts on the Current shell and is invalid for other shell processes other than the current shell and the Current shell Sub-processes.
Assign a value to a local variable
name='value'
Value can be a string or a variable. The referenced variable uses $ {name}, $ name, or ''.
Note: single quotes are strongly referenced, while double quotes are weak refere
In the process of reading any questions, welcome to communicate togetherEmail:[email protected]qq:1494713801when executing a script full_build.sh, I was always prompted :-bash:./full_build.sh:/bin/bash^m:bad interpreter:no such file or directoryOr remind syntax error:unexpected end of FileOne of the reasons for the above error is that the script file is in DOS format, that is, the line end of each line is i
There are multiple types of Shell in Linux, the most common of which are Bourne shell (SH), c shell (CSH), and Korn shell (Ksh ). Each of the three shells has its own advantages and disadvantages. The Bourne shell is the original shell used by UNIX and can be used on every UNIX. Bourne shell is excellent in shell programming, but it is inferior to several other shells in dealing with user interactions. The default shell in Linux is the Bourne again shell, which is an extension of the Bourne shel
Linux Bash Shell learning notes, bash learning notes
Parameter extension:
1. The parameter referenced by the name is called a variable.2. Parameters referenced by numbers are called positional parameters.3. Parameters referenced by a specific symbol have special meanings and purposes, and are referred to as Bash's special internal variable reference.
Basic Parameter extension:Character $ will guide paramete
Bash basics man manual and bash basics manBash basics man Manual
Penetration tests based on Android devices are implemented through various terminals. Therefore, it is particularly important to master Shell-related operations. Bash is a Unix Shell program written for GNU. This document selects the Kali Linux penetration test tutorial Based on Android devices.
It
Getting started with gitIf you have no access to git at all, you can now simply understand the syntax of git (typing some commands) to upload the code to a remote repository or download to a local repository (server), we should have two warehouses at this time, that is, two places to put code, one is local, and the other is remote ( such as GitHub). The enterprise or team can manage the project through Git, and each programmer simply uploads the code
GitHub practice summary, github practice summary
Basics:
1. GitHub practice series ~ 1. Environment deployment + create the first file 2015-12-9
Http://www.cnblogs.com/dunitian/p/5034624.html
2. GitHub practice series ~ 2. Submit the local project to github
Http://www.c
Advanced Bash script, classic usage and cases, advanced bashIn linux, Bash scripts are very basic knowledge. You may feel very high when you listen to the scripts. Just like starting from the beginning, you may feel that script writing is a great tool. Although complicated scripts are very easy to understand, when we master the usage and skills of these scripts and practice more, we will always become a han
Description : This is a relatively simple bash script editor, but has been tested. The reason for writing this blog is to practice the loop control language, functions, positional parameters, local variables, and function parameter calls, as well as calls between functions, as well as parameters for obtaining user options and options.Note: The script options and the script options parameter get method use getopt and make further judgments, consult the
Upload the project step-by-step (Quick Start version) from a local file to Github and get started with github
Recently, I want to share some of my previous fun projects with Github. I have searched for an upload tutorial on the internet, and I feel that it is too profound and complicated to write, we record our method as follows:
PS: This method is generally appl
GitHub code management-at will, github code at will
The company has been using SVN for project management. at ordinary times, it has struggled with Git. Here is the simplest record of GitHub...
Creating a repository on git is free of discussion. There are also many tutorials on the Internet, which are recorded directly after creation:
Adding images to the readme
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.