We use Gitlab in the company intranet to build a Git server, in the actual use, need to get some warehouse data, but I do not understand the web, so I intend to directly on the server to do the warehouse processing, extraction information, and now
Gets the MD5 value of the file:
$ md5sum linuxmint-12-gnome-dvd-32bit.iso|cut-d '-f1
The resulting MD5 value:Ee3d6e2ca498bc7685b7f17cdb5f2eea
Use MD5 to verify ISO files:
$ md5sum Linuxmint-12-gnome-dvd-32bit.iso >linuxmint-12-gnome-dvd-32bit.md5
Scripting Tips
Script file name naming rules
The characters for the file name include
Letters, Numbers, ".", "_" and "-", note: The script's filename cannot begin with a number.
Name the name of the script file, use English words, phrases,
The script for this lesson is also shared in the share.
Day Fourth: Circular structure
Content outline:
application Example Analysis
For loop
While loop
The principle of the For loop
Achieve effect
Modified according to yesterday's menu.
Day Three: Conditional selection
Outline
application Example Analysis
Condition test
if...else...fi
Case...in...esac
Implement function Menu :
After executing the script
Press 1 to display the current time
Press 2 to show CPU load
The DB2 tutorial you are looking at is: Use shell extraction to update DB2 data. The shell processing DB2 database, which is written for work needs, extracts DB2 data from the shell and processes it.
#SQL文定义
Sql= "SELECT AAA, BBB, CCC from MYTBL1"
I saw a shell problem today, just to practice practicingYou need to create subdirectories (named in years) in multiple directories (such as Beijing Shanghai Tianjin Guangzhou, and so on), then enter subdirectories, create new directories, and name
This shell is to determine if the number entered is a reasonable float
The implementation code is as follows:
#!/bin/sh # Validfloat-Tests Whether a number is a valid floating-point value.
# This script cannot accept scientific (1.304E5)
The tree command is the protagonist of printing files and directories in a graphical structure. This command is not normally included in Linux distributions. You need to install it yourself with the package Manager.
Instance:
1. Tree
Print all
The first day of writing today, first of all, the basics of writing shell scripts
1. The shell script is extended with. SH, usually running./${filename}.sh or SH ${filename}.sh2. Shell script begins with #!/bin/bash #! read as "Shebang"3. Open
I have a limited memory, the usual Linux encountered in the project to share the common commands to everyone.
Linux Common commands complete http://www.jb51.net/linux/
^m exists in Linux filesThe use of shell command TR can be achieved by removing
Objectivetoday I just wrote an automated packaging script, again using the bash shell, a good feeling of happiness. The main point here is to introduce the Select command, which can help us complete the menu selection function.
FormatI am also the
Once a file is created, it has three ways to access it:1) Read, you can display the contents of the file.2) write, you can edit or delete it.3 Execute if the file is an S H e l l script or program.The permissions of a file can be grouped into three
1 Ensure that you are in the home directory (if not, run: cd/home)2 New Backup folder (command: mkdir backup)3) New Script backup.shVI backup.sh
Copy the following code (after replication: wq! to save):
Copy Code code as follows:
#!/bin/
HBase is the Open-source implementation of Google BigTable, using Hadoop HDFs as its file storage system, using Hadoop MapReduce to handle the massive data in HBase, using zookeeper as a collaborative service.
1. Introduction
HBase is a
Provides an operational expression in the following format: $ ((expression))
$ echo $ ((5* (3+3))
30
$ result = $ (($myvar-10))
The shell provides a convenient number of conversions between:
$ echo $ ((013)) #八进制
$ echo $ ((0xa4)) #十六进制
You can
first, talk about the limitations of the Shell scripting language itself
As an interpretative scripting language, it is inherently inefficient. Although the other commands it invokes may be good in efficiency.
The execution of the shell script is
First, through the timing of email to detect network connectivity
Copy Code code as follows:
#/bin/bash
echo "Daily Test mail" > State.txt
Mail-s Server_state Abc@jb51.net Rm-df./state.txt
~
Crontab-e
Add the following
Copy Code code as follows:
#!/bin/bash
#telno for the query number list file
#sendsms. Log send result file for SMS
#1 Rep sent successfully
Query_sms ()
{
>submit_telno
>delivered_telno
>fail_delivered_telno
Cat Telno |while Read line
Iredmail is a set of postfix-Core integrated messaging system installation scripts that can be used to quickly deploy mail servers.
After a series of analyses above, enter the steps to obtain the installation package, the author wrote a separate
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