Using the Runtime.execute method, we can run Linux shell scripts in Java programs, or execute other programs Now through the Commandhelper.execute method can execute the command, the class implementation code as follows: Package
This article mainly introduces the shell commonly used operator Summary, this article explained the arithmetic operator, the relational operator, the test operator and so on content, needs the friend to be possible to refer to under
First, the
To the users of Photoshop software to explain the detailed analysis of the mobile phone transparent shell repair map Tutorial.
Tutorial Sharing:
Iphone6 Mobile phone shell artwork
The first step: before making a picture I used to
The basic syntax for BASH• The simplest example--hello world www.111cn.net!
• about input, output, and error output
The bash of variables in the Chinese language (and the similarities and differences between C languages)
The basic Process Control
The Linux shell is much more powerful in programming than in Windows batching, whether in loops or operations. There is no comparison of data types. The following is a summary of how an individual operates on an array while in use.
1. Array
First, topsy variables and environment variables
Variables are an essential part of any programming language and are used to hold variables of various types. Scripting languages are mostly weakly typed languages (dynamic languages), which means
1. Define functions within the shell file and refer to:
Copy Code code as follows:
[~/shell/function]# Cat factorial.sh
#!/bin/bash
function factorial
{
Factorial=1
For ((I=1;i Todo
factorial=$[$factorial * $i]
Done
Write a shell script under Windows, upload to Linux run the Times wrong:
Copy Code code as follows:
[Root@localhost test]#./test.sh
-bash:./test.sh:/bin/sh^m:bad interpreter:no such file or directory
Test.sh Source:
Copy
Case statements are used to implement multiple if. else, but the usage is somewhat different, people who have learned other languages know that the case to match the variables, if there is a matching successful words to execute the corresponding
window, after the ADB shell, for example, if your sdcard save the file name of Chinese characters, then in the cmd display is some irregular Chinese and mixed with garbled.
This situation occurs because:
Android uses the UTF-8 character, and the
DNS load balancing is the first implementation of load balancing technology. Configuring the same name for multiple addresses in a DNS configuration file is configured with multiple A records pointing to a different IP, and the client will randomly
1. Single File read
Under the shell script, you can read files by rows in a variety of ways, as follows:
For line in ' Cat ${input_filename} '
Todo
Echo $line
Done
While Read line
Todo
Echo $line
Done
The second way is to redirect files
Ubuntu does not have the SSH (Secure Shell) service installed by default, and if you want to link to Ubuntu via SSH, we need to install ssh-server manually.SSH sub-client ssh-client, server Ssh-server.1. Determine if the server is installing SSH
1.HBase Shell and we use the MySQL terminal is a means, such as we installed MySQL, CONFIGURED environment variables, command line input mysql-uroot-p password can be directly into the MySQLThe terminal, where HBase is also a meaning.How to enter
First, Introductiongrep (abbreviated from globally search a Regular expression and print) is a powerful text-search tool that can use regular expressions to search for text and print matching lines. The grep family of Unix includes grep, Egrep, and
Awk was finally able to get started, so he tidied up the article, mostly from the Internet.First, bash supports one-dimensional arrays (which do not support multidimensional arrays) and does not limit the size of arrays. In the shell, the array is
Shc methodShc is a tool for encrypting shell scripts. It converts shell scripts into executable binary files.Automated maintenance of the system using shell scripts is simple, convenient, and portable.However, shell scripts can be read and written,
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