Shell Essays I. learn about Shell Programming knowledge Reserve
I told you before, leave homework for everyone. Linux System command application;
Vi/vim Editor's proficiencyin the use of SSH client software settings;
basic services,
Batch file tool (Java+shell command implementation)There are a bunch of corpora that need to be processed before they can be used, and should be directly handled directly with shell scripts. But not familiar with shell scripts, only a few simple
Shell is a program for managing and running processes. Next we will simulate a shell program. This instance will better understand the process creation and termination in Linux/Unix systems, and the relationship between parent and child processes.
In Linux, the language setting and localization setting are really complicated, and garbled characters may occur from time to time.
In general, the language displayed in Linux is determined by environment variables.
These environment variables
The method to compare the two strings is as follows:
If ["$ test" x = "test" X]; then
The key points here are:1. Use a single equal sign2 Note that there is a space on both sides of the equal sign: This is a UNIX shell requirement.3. Note that
The Bourne shell
when Unix was first born, it had a very basic shell written by Ken Thompson, one of the creators of UNIX. the Bourne shell was written by Steve Bourne in 1979 as a Scriptable Unix shell. all other shells have a prefix to qualify
We can use any text editor, such as gedit, kedit, emacs, VI, to write shell scripts. It must start with the following line (the first line of the file must be placed ):
#! /Bin/sh...
Note: It is best to use "! /Bin/bash "instead of"! /Bin/sh ",
Automated CT is a software suite for automatic interaction (Automated CT [is a] software suite for automatic interactive tools ).
The Except CT language is based on TCL. As a scripting language, TCL has simple Syntax:
CMD Arg
A tcl command consists
Bash selection StructureSelect the program structure to determine the given conditions, determine certain conditions based on the judgment results, and control the program process based on the judgment results. (For details about how to use the
TR is used to delete control characters in a file or convert characters.Syntax: TR [-C/D/S/T] [set1] [set2]Set1: Character Set 1Set2: Character Set 2-C: complement. Use set2 to replace characters not included in set1.-D: delete all characters in set1
Question
The insert sorting method extracts a value from the front end of the unordered half and inserts an appropriate position in the front of the sorted half. The concept is simple but the speed is not high.
One of the basic principles for
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]
The grep command is used to obtain the line information that complies with the rules. This section describes how to use awk to obtain
Hadoop provides scripts to verify whether the file directory exists:
-bash-3.2$ hadoop fs -help...-test -[defsz] :Answer various questions about , with result via exit status. -d return 0 if is a directory. -e return 0 if exists. -f return 0
Location parameters
Internal Parameters
Just as the LS command can accept directories and other parameters as its parameters, parameters can also be used in shell programming. Parameters in Shell programs include location parameters and internal
Solaris is used in many aspects, which is not the same as before. The following describes some shell Problems and Solutions in Solaris.The default shell of Solaris is sh, that is, the command line prompt is (Root User ):#In the Linux Command Line
1. Execute bash shell:(1) Go to the directory where the shell script is located: CD/root/tmp and execute./test. Sh.
(2) execute shell script:/root/tmp/test. Sh in absolute path mode.
(3) run the script CD/root/tmp bash test. Sh, sh test. Sh, or bash/
Remove ArmadilloV3.60 shell DLL with Ollydbg
Author: fly
[Author's statement]: I am only interested and have no other purpose. For errors, please enlighten us![Debugging environment]: WinXP, Ollydbg1.10C, PEiD, LordPE, ImportREC----------------------
Linux Shell script monitors the running status of WAS (WebSphere Application Server)Principle: You can call the WAS script wsadmin. sh to obtain the instance status.Operating system version:
[Root] # head-1/etc/redhat-releaseRed Hat
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