manipulating databases with Shell commands

Use the-e parameter of MySQL can perform various kinds of SQL (create, delete, add, erase, change, check) and other operationsUsageMysql-uxxx–pxxx-e "MySQL Command" Of course, you can also use the following notation MYSQL-E-uxxx–pxxx "mysql

Shell Special Symbols

*: wildcard, matches any character, such as LS *.txt to see all files ending in. txt?: matches any one character#: annotation characters\: escape character for converting special symbols to normal characters, such as Touch \#.txt to create a file

Shell Script Learning 1 (Linux script Raiders)

sudo equivalent to root permission execution commandGive executable permissions to all user files: chmod a+x script.shExecute script:./script.sh#./represents the current directoryCommand 1:echo "Welcome to Bash"Command 2:printf "Hello

Executing shell scripts in Linux

This article mainly introduces the 4 methods of executing shell scripts in Linux, that is, 4 ways to run shell scripts in Linux, and the friends you need can refer to the followingThere are several ways to bash a shell script, and now make a summary.

Practice of shell Special extended variables

Bo main name: Li ChangmingBlog Address: http://keep88.blog.51cto.comThis note is from the old boy books: Learn Linux OPS Shell programming with old boysSpecial extension variables1. ${parameter:-word} Functional PracticeThe role of ${parameter:-word}

Hive shell command.

Hive shell command.Connect Hive ShellDirect Input Hive 1. Display tableHive> Show tables;OkTestTime taken:0.17 seconds, fetched:1 row (s) 2. Create a tableHive> CREATE TABLE Test (key string);OkTime taken:0.265 seconds3. Create partition Table:Hive>

Pytohn implementing the WC command in the Linux shell

#!/usr/bin/pythonimport sysimport osfrom optparse import optionparser  def  opt ():     parser = optionparser ()     parser.add_option ("-C",  "--char",                       dest= "Chars",                       action= "Store_true",                 

Shell programming for Linux systems-the normal form

Shell programming is in the form of:1: meta-character []. *  ?+ ( )  | {  }  ^  $2: [a-z0-9] Represents a random number and letter match3: [^a-z] matches the random one except the letter4:ab+c + represents a character that matches one or more of the

Shell Foundation Part2

Shell BasicsFirst, the variables in bash1, the definition of the variable: The variable is the memory unit of the computer, where the stored value can be changed.2, the variable's setting rule: The variable name cannot begin with the number, the

Special variables in the shell

$ File name of the current script $n N is a 1-based number, which represents the first argument, and $ $ for the second argument, and ${10} for the tenth argument $* All positional parameters (all

Shell script in the case of the if conditional regular expression =~ quotation mark problem

Today, when you run the If judgment in the script, you always get into the corresponding branch and check the regular expression without errors. In the shell alone to execute or show no match. Rather strange, it was searched, it was found in the =~

5 TR of the shell command

This is a wonderful command.TR's whole spell is translate, that is, translation. Interestingly, we are able to make rules for translation. Use methods such as the following:TR [option] set1 [Set2]TR accepts input from standard input. The results are

Shell Basic Learning

#! /bin/bash#设置只读变量, read-only variables are not modifiableMyurl= "Http://www.baidu.com"ReadOnly Myurl#删除变量, unset cannot delete read-only variablesmyurl1= "Http://www.sina.com"Unset MYURL1#运行shell时会同时存在三种变量#局部变量, environment variables, shell

Linux Command basics: Shell operators and keyboard wildcard characters

A wildcard wildcard is a class of keyboard characters. Wildcards are often used in place of one or more real characters when looking for a folder, when you don't know the true character, or if you don't want to type the full name.             *

Use of the Shell's read

The read command is used to receive input from the keyboard's standard input and other files, and after the input is entered, the Read command places the data in a standard variable.Example 1:#!/bin/bashRead-s-P "Enter you password:" Password #-s:

The method of generating random numbers in Shell series

One: RANDOMEcho $RANDOMRandom number is a range of 1--32767, generally used it can be cracked1.2 Generate a eight-digit random password:echo $ (($RANDOM +11111111))Two: Md5sum random encryption method generates a longer passwordTake 9-digit password:

Centos Execution Shell command returns 127 error

Shell Scripting Features:Connect MySQL, create the database automatically, the script is as followsMysql-h$mysql_ip-u$mysql_user-p$mysql_password--default-character-set=utf8-e "CREATE database IF not EXISTS test"Database IP, user, password using

Learn the shell script

First line: #!/bin/bash--#! Interpreter for Tag scriptScript: #!/bin/bashecho "Hello World"Give execute permission chmod +x./test.shExecute script:./test.shThe $ symbol is not required when defining a variable: td= ' Date ' +%y%m%d '1. There can be

Shell Script-----Loop Array

Aa=

Windows64 bit install GPU version TensorFlow 0.12,power Shell enter: Full tutorial on installing TensorFlow

It is recommended to use PowerShell, just enter PowerShell in the CMD command window Download 64-bit Python3.5 (be sure to 3.5!! Python3.5.2 can be downloaded and installed via Python 3.5 from python.org or Python 3.5 from Anaconda (note selecting

Total Pages: 541 1 .... 408 409 410 411 412 .... 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.