Hbase Shell Data Operating instructions

Start, close HBase./bin/start-hbase.sh./bin/stop-hbase.shQuery the HBase version. Its syntax is as follows:HBase (main):010:0> versionBuild tableCreate ' ', ' 'Create ' emp ', ' personal data ', ' professional data 'List all tables: ListTable

Easy to use shell small programming

1 "Judge input as number, character or otherScript code:Test results:2 "Averaging:Test results:3 "self-reducing output:Script code:      Test results:4. Add a prefix to the file:Script code:Effect Display:5 "Batch test file is present:Script

Shell automatic backup Deployment New Project (2)

Optimized scripts for automatic backup, automatic restart of Tomcat#!/bin/bashnew_war= "Mobile.war" project_name= "tomcat-app1" #创建临时文件夹tempDirName = ' date ' +%y%m%d%h%m%s ' tempdirname= "Bak/mobile-${tempdirname}" echo "Ready to create Temp folder:

Control judgment statements in shell programming

If Single-format and nested if conditional expression; then #当条件为真时执行以下语句 command list else #为假时执行以下语句 command List fiif Statements can also be nested using an if condition expression 1;then if condition expression

Shell Programming (v)

Learning from the previous articles, we learned the basic syntax of the shell. In the actual operation of Linux, we often see the command will have many parameters, such as: Ls-al, and so on, then how this parameter is handled? Let's take a look at

Using the shell in Linux to analyze the information in the statistics log

In operation and maintenance work, we should analyze the log of back-Office system frequently, and provide the basic data for the monitoring result by grasping the key word information in the log and counting the fetch results.The following shell

Shell finishing (31) = = = To determine if the input is IP

(title): Determine if the incoming parameter is IPIdea: 192.168.1.1is the condition of the IP, * * * dot decimal This four number must be less than 255Dot decimal must be guaranteed to be a number, not a letter#!/bin/bash[ -z $1 ] && echo  "uesage : 

Shell Script Learning Notes

1./dev/null/dev/zero ①/dev/null:/dev/null, called an empty device, is a special device file that discards everything written to it (but reports a successful write operation) and reads it immediately to get an EOF. In Unix jargon,/dev/null is called

Common shell commands

1. Find the contents of the file (e.g. account number: zh123456): Grep;lsMode 1 Find all Files: grep zh123456 *Mode 2 recursive lookup: ls | Xargs grep zh123456Mode 3 Recursive lookup: Find. -name ' apf44_zswmpay* ' |xargs grep applog|awk-f ": '

The shell script will specify the directory of the first 3 days of the date after the directory is packaged with tar and deleted from the source date directory

#/bin/bashWork_home=/dataOlddata_home= "${work_home}/olddata"Target_day= ' date-d '-3 day "+%f"#打包前3天的日期目录压缩成功后并删除TAR-ZCVF ${olddata_home}/$target _day.tar.gz ${olddata_home}/$target _dayIf [$?-eq 0];thenecho "The $i is Compression success"RM-RF

Linux commands (10)--shell programming one (variables and operators)

The shell is an interface between the user and the system in a Linux system, and it is a high-level programming language, in addition to being the command interpreter. In the Linux command described earlier, the shell appears as a command

[Turn]bash shell common shortcut keys

Tag: will return CTR Word delete Move page ackMove cursor ctrl+b: Move forward one character (backward) ctrl+f: Move back one character (forward) alt+b: Move forward one word alt+f: Move back one word ctrl+a: Move to the

[Linux] Shell Scripts

Shell script is a "program" written using the shell's function, which uses plain text files to write some shell syntax and instructions (including external instructions), with regular expressions, pipeline commands, and data flow redirection. In

Shell script game: scissors stone Cloth

#!/bin/bash#author: The Adventures of Tintin (Jacob) #定义数组, save all the possibilities of Punch game= (stone   scissors   cloth) num=$[random%3]computer=${game[$num]}# Get the punch of a computer by random number # The possibility of a punch is

Shell Script Process Control

Shell scripts become used in the process usually requires process control, in general, sequential execution, in the actual use of different situations need to execute different commands, then use the choice to execute such as if, case, sometimes

The shell script records the files that are not stored

In the work often encountered in a file to record a number of file name or picture name, in the specified directory to find all the files in this file, but the specified directory does not have all the names recorded in the file, you need to find in

Common shell variables

The file name of the shell itself $1~ $n Each parameter value added to the shell. $ $ is the 1th parameter, and the $ = is the 2nd parameter ... $$ the shell itself PID (ProcessID) $! PID of the Shell's last running background process $? End

Linux Shell Learning Three

Shell for LoopThe syntax for the Shell for loop is as follows for inch List Do command1 command2 ... CommandN DoneExample: for inch {1.. - } do echo $i Done Class C language is also possible for ((i=1; i; i + +)) do

Shell Transfer Array Parameters!

Knowledge Points: Array function Local Variables Defining pass-through parameters Example 1:A= (1 2 3) b= (a B c) function () {Local a=$1 local b=$2 for I in $a does echo $i done Ech o $b}funcition "${a[*]}" "${b[*]}" Result: 12

Linux command Detailed (10) An array of shell scripts

1. Array definition[[email protected] ~]# a= (12345678) [ [Email protected] -IDC ~]# Echo $aA pair of parentheses indicates an array, and the elements of the array are separated by a "space" symbol.2. Array reading and Assignment1) Get the length

Total Pages: 541 1 .... 400 401 402 403 404 .... 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.