Convert Chinese characters to URL code under Linux shell

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%

function return value exceeded problem in shell

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

Request execution time period and Shell function

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

Use of the sort sort command under the shell

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

The power Shell's variables, arrays, objects, and operators are detailed

"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

"Lazy shell script" seven--format processing data into the database implementation

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?

Shell Script (iii)

Excerpt from: Rookie Tutorial http://www.runoob.com/linux/linux-shell-echo.htmlShell command1. Echo commandString outputecho "ok! \c "echo "It is a test"Output: ok! It is a test2. printf commandFormatted output%d%s%fEscape sequence:\a: Warning

Bird's Linux private cuisine--16th chapter: Learning Shell Scripts

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

UNIX Changes Shell display color

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

Spark-shell Startup script Interpretation

#!/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

Use the shell script to find the process ID for the program and kill the process

#!/bin/shName=$1Echo $NAMEId= ' Ps-ef | grep "$NAME" | Grep-v "$" | Grep-v "grep" | awk ' {print $} 'Echo $IDecho "---------------"For ID in $IDDoKill-9 $idecho "Killed $id"Doneecho "---------------"1), save it as killprocess.sh2), call./killprocess.

Shell Road--zabbix Automatic deployment

#!/bin/bash#auto Install Zabbix#by Max 2017zabbix_soft= "Zabbix-2.0.6.tar.gz"Install_dir= "/usr/local/zabbix/"server_ip= "192.168.0.100"ip= ' Ifconfig|grep Bcast|awk ' {print $} ' |sed ' s/addr://g 'Server_install () {Yum-y Install Curl Curl-devel

Shell Write login Springboard machine

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

Linux (vi) Shell operations practical tips

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

Nginx Log Cut shell script

####### My Shell Code ##############! /bin/bashDate= ' Date +%y%m%d 'Logpt=/root/nginx/logs/access.loglogbk=/data/ng_log/$dateLogpid=/root/nginx/logs/nginx.pidlogtag= $LOGBK/' Date +%y%m%d%h%m%s 'if test! -D $LOGBK; then mkdir-p $logbk; fiTest-f

Shell Basics (iv) Uniq and Tee

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

Find or Query Data with the MONGO Shell

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

Shell Quick Start

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:

Spark-shell start warn---java.net.BindException:Address already in use

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]#

Shell regular arrays & associative arrays

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

Total Pages: 541 1 .... 241 242 243 244 245 .... 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.