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
Execute scriptWrite a simple script test.sh:#! /bin/shCD. LSThe shell script uses # notation, which corresponds to the C//comment. However, if # is at the beginning of the first line and is #! (called shebang), the exception is that the script uses
one, the Linux shell wildcard character (wildcard)wildcards are handled by the shell (not by the command statements involved, but we are not aware of these wildcard characters in the shell commands), it will only appear in the "Parameters" of the
1. various Unix shellsThe shell of Linux is basically developed from the shell in the UNIX environment, and posted on the wiki: which we commonly use, can be categorized as Bourne Shell (/usr/bin/sh or/bin/sh), Bourne Again Shell (/bin/bash), C
In Linux, how does one read and write XML using shell scripts? An existing config. xml
XML version = "1.0" encoding = "UTF-8"
?>
Config
>
Server-IP
> 192.168.1.45
Server-IP
>
Server-Port
> 1209
Server-Port
>
Obfuscation is currently dominant in DOTNET protection. Name obfuscation is the most basic obfuscation protection technology.The DOTNET encryption and protection tool maxtocode has also added obfuscation protection-name obfuscation in recent updates.
Note: Some variables related to parameters passed to shell:$ # Number of command line parameters$? Return Value of the Call Command$ Process ID of the current process$! Process Number of the last background command$0 the first parameter of the
I. Introduction to HDFS shell commands
We all know that HDFS is a distributed file system for data access. HDFS operations are basic operations of the file system, such as file creation, modification, deletion, and modification permissions, folder
I originally wanted to write some shell scripts to train the trainer. I just wanted to give it a guess. so there will be a follow-up event. the most primitive guess script was first written. both functionality and aesthetics are unsatisfactory.
Until loop syntax format:
Until conditiondo statementdone Note: The condition when until enters the loop is: when the condition is not true, the loop is executed. The condition for until to enter the loop is exactly the opposite of while. The
Exercise: write a script (using the function). 1. prompt the user to enter the device file of a disk device. If the device file does not exist, prompt the user to enter the file again until the user inputs the file correctly; after the user gives
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]
Like awk, sed is an important text filtering tool.
Calling SED is the same as calling awk. There are three methods:
1. Type A command
After you successfully log on to a text interface, in most cases,
You will see a flickering square or bottom line on the screen (depending on different versions ),
We call it a * cursor * (cursor ).
The cursor is used to tell you where the button
By default, MongoDB stores data in/Data/DBDirectory
Ubuntu is installed under/usr/lib/MongoDB by default.
Start the service
Start the MongoDB Server:
$ Sudo./MongoDB-path/bin/mongod
Start shell, which is connected to localhost by default:
$
The first introduction of emacs-shell mode
Shell mode is an interesting mode in Emacs. Generally, there are three main ways to run shell in Emacs. One is to use Emacs terminal emulator. This mode basically simulates a terminal in Emacs and then runs
Http://www.3800hk.com/Article/ OS /Linux/bckflu/2005-08-06/Article_37229_2.html
Code :--------------------------------------------------------------------------------
1. Create and run Shell programsWhat is a shell program? Simply put, a shell
1. 12 steps of bash command processing;
1. Divide command lines into tokens separated by fixed metacharacters;
SPACE, TAB, NEWLINE, ; , (, ),, |,&
The types of tokens include words, keywords, I/O redirections, and semicolons.2. Check the first mark
Use shell extension to implement the source code statistics program
Author/king_dxs
Download source code
I. PrefaceIn the Windows Resource Manager window, we have seen software such as WinZIP and WinRAR that can add several menu items to the default
From the National Day holiday to today, "linux Command Line and advanced shell programming" has initially learned chapter 10. Basically, I can write some simple process control scripts. Today, an unexpected whim occurred, trying to create a
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.