In the Linux shell environment, there is an OD command that allows files to be exported in different ASCII code, which completes the task of converting Chinese characters to URL encoding under the Linux shell.
The URL encoding is a hexadecimal-like%
This article mainly introduced the shell in the function return value exceeds the problem, the shell returns by return is limited, the maximum return 255, more than 255, then starts from 0 computation, needs the friend may refer to under
1. Preface
The request execution time period is usually referred to as "appy times". Refers to the time period when the system VM stabilizes to the VxDs and ring-3 level application software (especially the 16-bit application). For example, at a specific time
First set up a file, very messy, no rule:
A positive sort:
Inverted sort:
Uniq Delete duplicate rows in a file: Use this command to sort the files first.
For file redundancy, as long as all duplicate characters of the file are displayed
"Variables and Constants"
Variable: The amount that will change, temporarily storing the data so that you can call it later
Constants: Quantity that does not change
One, variable and array
"Variable", like in memory to divide a space, you can
0. IntroductionEncountered in real-world application development: Storing unformatted file data in a database. For traditional formatted data: Ini/json/xml We all have a ready-made class library to implement. What about non-formatted data like this?
Video link:1. What is shell script (script written by Shell)1.1 Why study shell scripts? ()1.2 Writing and execution of the first script1.3 Creating a good habit of writing shell script2. Simple shell Script Exercise: (read-p date)3. Use the
When writing a shell script. By changing the shell's display color, you can not only change the experience of using the shell terminal, but also more useful, you can distinguish the normal output by changing the color of the display content. Output
#!/usr/bin/Envbash## Licensed to the Apache software Foundation (ASF) under one or More# contributor license agreements. See the NOTICEfiledistributed with# this work foradditional information regarding copyright ownership.# the ASF licenses
Prepare 3 Machines1.linux-node1 ip:10.89.3.108 (Springboard machine)2.weblamp ip:10.89.3.1003.weblnmp ip:10.89.3.101The 3 system environments are as follows:[Email protected] ~]$ cat/etc/redhat-release CentOS release 6.8 (Final)1) First do SSH key
First, the shell operation date TimeThe Linux system provides us with a command date that is designed to display or set the date and time of the system.The syntax format is:Date [OPTION] ... [+format] orDate [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.
Shell Basics (iv) Uniq and TeeUniq is used to repeat the row, the most common option is only one, that is,-C count counts the number of repeated rows, and writes the number of repetitions in front.Note: Use the premise that you need to sort the
https://docs.mongodb.com/getting-started/shell/query/OverviewYou can use the find () method to issue a query to retrieve data from a collection in MongoDB.All queries in MongoDB has the scope of a single collection.Queries can return all documents
1: Script start line #!/bin/bash This line indicates that the script needs to run with the bash shell, regardless of the user's choice of the interactive shell. Because each shell's syntax is very different, this sentence is very important. 2:
At the same time, two SECURECRT terminal interfaces have been opened, one of which has entered the Spark-shell and executed in another SECURECRT interface."Spark-shell--master yarn--deploy-mode client [[email protected] test_code]#
In the process of writing the Shell Daily , the array is a very common content. Here we briefly describe how the two arrays are used. A regular array, an associative array. The difference is a regular array, which can only be accessed using integers
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