Export data from the DB2 database using a shell script based on the user name, database name, and password entered(1) The a.sh script is as follows #!/usr/bin/"" "" " "" EXPORT To/home/practice/data/a.del of del select * from a "(2) Connect to
The cue color in the shell terminal is determined by the PS1 in the environment variable, so change the PS1.1> Temporary changes[[Email protected]~]# echo $PS 1 [\[email protected]\h\w]\$ [email protected]~]# ps1= ' \[\033[31m\][\[email prote
Thinking of solving problemsThe file Shu is the following.220 34 50 70553 556 32 211 1 14) 98 33The file Jian is the following.1082Want to get the result is the following.210 24 40 60545 548 24 131 1 12) 96 31Use awk to get the results you
Help Desk Meet Power Shell2015-12-14 16:58 Microsoft China TechNet Read 397Share with you some of the views of desktop support and power shell.Desktop technology Support, at first more mechanically repetitive single operations, such as the
The following string is known to be the result of the random number variable md5sum|cut-c 1-8 intercept, please crack these strings corresponding to the md5sum before the random corresponding number?[Email protected] md5]#CatZifuchuang2102929900205d1
| Introduction If you are using GIT with the command line, you can use the git status command to query which branch you are working on now, but it's hard to forget what branch you're under, so you have a mug with a wrong operation. It is no doubt
loop control and functionsBreak loop control, continue loop control.Loop control characterThe break loop control can be used to exit the entire loop;After exiting the loop, the following loops are executed, using the Continue loop
1. string Judgments
STR1 = str2
True when two strings have the same content, length
Str1! = str2
True when strings str1 and str2 are unequal
-N str1
True when the length of a string is
In some complex Linux maintenance work, a lot of repetitive inputs and interactions are time-consuming and error-prone. Scripts are needed.The benefits of scripting: batch processing, automated completion of maintenance, reduction of the burden
1. What is a shell?The shell is the interface between the user and the Linux operating system.There are multiple shells in Linux, with bash being used by default.Classification of 2.shell(1) BashThe bash Shell is a free version of the Bourne shell,
#! /bin/bashTwo ways to run the shellChange Permissions chmod u+xSpecifying the interpreter at run timeShell variablesVariable typeaccessing variables$, ${}Read-only variablesReadOnlyDelete a variableUnset cancels a variable, but cannot cancel a
SelectThe Select loop is used primarily to create menus, the menu items in numerical order are displayed on standard errors, and a PS3 prompt is displayed, waiting for the user's input, the user enters a number in the menu list, executes the
I. Shell INTRODUCTIONThe role of the shell is to explain the execution of the user's command, the user enters a command, the shell executes one, which is called Interactive, the shell has a way to execute the command is batch processing, the user
Before we write, let's figure out why we need to learn the shell and learn to be purposeful.The shell is simple, flexible, and efficient, and is especially suitable for dealing with some minor system management issues.Shell automates management,
Use the key file. This assumes that host a (192.168.100.3) is used to obtain a file for Host B (192.168.100.4). Execute the following command on host A to generate the pairing key: ssh-keygen-t RSA encounters a prompt to enter by default, and the
function definition Format:[function][()]{ action; [returnint;] }Cases:#!/bin/bash Funwithreturn () { Span class= "PLN" > echo echo "Enter first number : " read anum echo " Enter a second number: " read anothernum echo " two numbers are $aNum
Reprint: http://www.linuxawk.com/jiaocheng/83.html6. printf functionsWhen you print the output, you may need to specify the number of spaces between the fields to arrange the columns neatly. Using tabs in the Print function does not guarantee the
I. The history of the shellThe role of the shell is to explain the execution of the user's commands, the user enters a command, the shell interprets the execution of a bar, which is called Interactive. The user also has a way of executing a command
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.