echo Color output position parameter variable a predefined variable read accept script arguments enter declare source command
echo Color Output
I just found out today . Echo can also output a string with a color :
Echo-e "asdasd\e[1;32m ABCD \e[0m"
To sort an integer element in the ArrayList collection in ascending order:
Package org.hyp.test; Import java.util.ArrayList; Import Java.util.Random; public class Mysort {private arraylist list, public arraylist getlist () {return list;} PU Blic
When using the shell under Linux, the array is occasionally used for convenience. The array is declared in the following way:
array= (element1 element2 element3 ... elementn)
That is, wrap the array elements of the parentheses package together,
When executing a pre-existing shell script file under a Linux system, it prompts you that the file does not exist.
The general reason for this is that your shell script is written in a system that is inconsistent with your execution script, such as
http://kingphp.blog.163.com/blog/static/200423244201361632639594/
When you start a program with bash, you can use it after the program, and the implementation program runs in the background;
For example: Emacs &
But if you forget to enter &; but
Introduce a file in a makefile file by using include
Include $ (shell./getname)
and the contents of the GetName are as follows:
pwd=$ (PWD);
if ["${pwd#*/zloader.}" = "$pwd"];then
Echo Makefile.cpci
Else
echo Makefile.${pwd#*/zloader.}
fi
I've
First need to go to the System Management-> Management plug-in, select the Optional Plug-in tab, search and find SSH slaves plugin plugin, click Download installation
You may need to reboot the Jenkins after the installation is complete
You can
Reprint: http://blog.chinaunix.net/uid-27571599-id-3473078.html
Many people have asked me how to write shell script, how to achieve the same time to upload files to three FTP servers, how to detect the three servers are alive and so on, in fact,
#。 The first sentence in the footsteps, indicating the program used to execute the script
Example: #!/bin/bash
# comments, for help information or for ignoring statements that are temporarily not executed
# This is a comment
$ variable
It's nice to install fish shell today and install oh-my fish.But it is still a preliminary attempt and more features are not known. Install Fish
sudo apt install fishSet as Default shell
Chsh-s/usr/bin/fish
If you want to switch back to bash,
The I-III section deals only with bash ...
For others, see section IV ... I: The use of obase, IBase and BC: IBase is the input of numbers, and obase is the output of the number of the system. Well remember, I am input,o is output.Note that the F
HBase provides users with a very convenient way to use it, which we call "HBase Shell."The HBase shell provides most hbase commands, which can be easily created, deleted, and modified by HBase shell users, as well as adding data to tables, listing
1. Definition of variables
1.1 Variable names can consist of letters, numbers, underscores, but numbers cannot be the first character of a variable name.
1.2 Define the value of the variable by assigning the symbol "=", e.g:
Myname= ' Test ', String
If you want to compare two version number strings through the shell, such as two version numbers 1.1.2 and 1.2.1 Two versions who are relatively new.The simplest is to use the sort command. With the parameter "-V" the sort command can sort the
The contents of the log file are as follows:logid=2210608107 worker_id=140610281404160 optime=1452598610.631276 msg=service+not+found+in+share+memory service=Redis_doc_pushThe post-column output is obtained through awk, and the disadvantage is that
1, write script/root/bin/systeminfo.sh, display the current host system information, including hostname, IPV4 address, operating system version, kernel version, CPU model, memory size, hard disk size2, scripting/root/bin/backup.sh, can be
1:test variable-get 80 to determine whether it is greater than [] =test2: Use the regular expression to use [[]]3: [[]] = = Same, string do not add "" to this wildcard character=~ match, string do not add "", support extended regular
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