shell scripts in Linux set environment variables
- -How to set environment variables with scripts
I want to make a script to set up or cancel a set of environment variables, but because the script program's settings for variables disappear after
function
If you do not need to develop and modify the Android project configuration file, perform Android lint check, after the inspection, the inspection results under each AAR package from the remote machine copy to the node machine. Source Code
#
Linux Nineth session--------------------------------------------------------------------------------------------------------------- -----------------Program: algorithm + data structureData: The core of the programAlgorithm: How data is
The test command in the shell is used to check if a condition is true, and it can be tested in three aspects of numeric, character, and file.Numerical Test-eq equalsis True-ne Not equal tois True-gt greater thanis True-ge greater than or equal tois
1 Linux operating system Shell1.1 shell scriptWhen a command is not executed on the command line, but is executed from a file, the file is called a Shell script.Attention:Shell scripts typically use. sh as the suffix, but are not required.The Shell
Directory index of this blog post[TOC]First, the Cognition function (a) What is a function?1, the function, the English called: function2. A function is a block of statements made up of several shell commands(b) Why should I use a function?1.
Process Control StatementsIn the shell if multiple commands are entered in the terminal, the commands are placed in the background if they are separated by &, and a collection of commands is represented if delimited. Shell allows logical operators
Odd number of LikesLife is not as good as the ten, but there are no two or three people with the prophets. Fortunately, we were born in the internet era, the reality can not find to talk to people can also be found in the network of emotional vent,
First, Shell introductionShell scripting is an essential part of everyday Linux system management, not a shell, not a qualified administrator.The shell is the intermediate medium that the system interacts with the computer hardware, a system tool.
20.1 Shell IntroductionShell is a scripting languageYou can use logical judgments, loops, and other syntaxCustomizable functionsThe shell is a collection of system commandsShell scripts enable automated operations, which can greatly increase our
Shell Special variables: Shell $0, $#, $*, [email protected], $?, $$ and command line arguments special variable list variable meaning $0the file name of the current script $n the arguments passed to the script or function. N is a number that
If condition test statement
If-then-fiThe IF condition test statement runs the command after the if (judgment).If the exit status code for this command is 0, the command in the then section will be executed.If the exit status code for the
While loopBasic syntax:While do DoneThe while loop is more used to read the contents of the standard input to implement loopsExample 1: Printing numbers sequentially#!/bin/bash#while test#by Sunnyi=10while ((i Shell Script VI: Loop while
1. Shell variables are divided into local variables and environment variables.
1. Local variable -- Used in the script currently running by the user1) define the local variable format: Variable-name = ValueExample: [root @ jike1/root] # localtest =
Linux Shell script
1. Linux script compiling Basics1.1 Basic syntax IntroductionStart with 1.1.1 Program The following line must start (the first line of the file must start ):#! /Bin/shSymbol #! The parameter used to tell the system that
Getting started with Linux shell scripts -- wget command usage
Wget is an open-source software developed in Linux, written by Hrvoje Niksic, and subsequently transplanted to various platforms including windows. It has the following functions and
This article is based on the following English documents: http://www.adminschoice.com/docs/crontab.htm.
Cron is a UNIX tool that uses cron background processes to automatically execute tasks at a specific time in the future. These tasks are usually
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
Offline backup/restore the TDS
1. Preparation (1) logon to the server as root.(2) open a terminal, check if there is the script named tarbackup. Sh in/usr/local/bin directory(3) make sure you
From the programmer's perspective, shell itself is a program written in C language. From the user's perspective, shell is a bridge between the user and the Linux operating system. You can enter commands for execution and use shell script programming
Shell programming-detailed introduction to sed commands, shellsed detailed introduction
Sed Introduction
Sed editor is called Stream editor. It is used to perform basic text conversion in an input stream (file or input from a pipeline. During
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