Wscript.Shell (Windows Script Host Runtime Library) is an object, and the corresponding file is c:/windows/system32/ Wshom.ocx,wscript.shell is a component that the server system will use. Shell is the meaning of "shell", this object can perform
3.1 Regular Expression BasicsThe primary function of regular expressions is text query and string manipulation. is actually string filtering.Regular expressions include ordinary characters and metacharacters character, meta-character main, see the
Transferred from: https://zhidao.baidu.com/question/357781350.html while Read-u3 i && Read-u4 J; Do Echo done34Read-u3 I means to read a row of data in the I variable from FD # 3rd (file descriptor, filename descriptor), so you know what Read-u4 J
Open multiple sub-processes in the script with & background, and use the wait command to make these sub-processes execute in parallel.Example 1:fun1 () {whiletruedoesecho1sleep1done }fun2 () {whiletruedoecho2sleep 1 Done &&WaitExample
Specify bashShell script first line, #! What should it be?Most of the cases/usr/bin/env bash,/bin/bash,/usr/bin/bash,/bin/sh,/usr/bin/env sh are equivalent, but few cases still have pits. If the default shell may not be bash, such as a release law,
The shell can be said to be an interpreter while providing a running environment for the code to run. and provides the programming capabilityThe shell does not have its own library, it just writes the applet commands within the command invocation
1. Field (column) Extraction command: Cut [option] file nameOptions:-F column number (extract the first few columns)-D delimiter (split column by specified delimiter)[email protected] sh]# cat student.txt idnamegendermark1alex male 112boby male
0. Standard format for professional scriptingFunction 1 function 2main function main $*1. Use the Dos2unix command to convert scripts developed under WindowsDos2unix is not installed by default and can be installed in Yum# Dos2unix web_jk.shdos2unix:
The && operator syntax is formatted as follows: Command1 && command2 [&& Command3 ...] 1. Use && connection between commands to implement logic and functions. 2. Only the command on the left of && returns True (command return value $?). = = 0) The
First, the text processing1. Extract key word frequency times by row (for example, 5th column)awk ' begin{fs= ' | '} {a[$5]+=1;} END {for (i in a) print I ":" A[i];} ' Opt. Forumlogicnewserver_action_20161107.log | SORT-NRK 2-t ': '2, log users per
~ Home Catalogue ls ~"Inside the inverted quote is the command echo ' ls ' | ' Echo ls ' | echo ' echo ls ' | ' echo ' echo ls ' replace command $ ()! Take sung with the historical Command (!123) 123 is the history display#代表注视信息$ take Variable
Take a look at several common sorting algorithms in the next two days.1. Bubble Sort MethodEach time the adjacent elements are compared from i=0, if arr[i]>arr[i+1], they are exchanged. Until the biggest element is pushed to the end. Go back to i=0
node. JS Reverse ShellExcerpt from: http://www.itfang.net/?p=109The javascript below is a node. js Reverse connection shell.This payload will generate a/bin/sh shell, create a TCP connection to the attacker's server, and bind shell commands in the
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