color backgroundsa-53. The practice of Morse codea-54. BASE64 encoding/decodingA-55. Using sed in inserting text filesa-56. The Gronsfeld passwordAnn-57. Digital generatorsa-58. Basic knowledgeA-59. Test execution time for various commandsA-60. Associative arrays vs. legacy arrays (Execution time)C-1. The advent of counting lettersJ-1. Complete the script for usegetopt.shM-1. BASHRC file Sample.M-2. Bash_profile file.N-1. Viewdata.bat:DOS Batch processing filesN-2. Viewdata.sh:viewdata.bat Shel
Script.net package, locate the configuration file Runtimeconfig.xml and add it to the project. It contains the initialization code that you can specify when you want to reference the assembly, type mappings, and run the Script.net engine.......]]>For example, you can define numeric constants in the initialization area, or initialize the code as followspi=3.14;Console.WriteLine (' Jack is Right ');]]>Then go back to the Script.net script code with the following codeRuntimehost.initialize (new Fi
At the beginning of the new year, the knowledge base of open source class is online. Early on, the Linux command Encyclopedia/bash Reference, Advanced Bash Scripting Programming Guide, is available in two series. Other materials are on the line.Among them, the Advanced Bash Scripting Programming Guide is a god-like b
Shell Scripting Learning GuideThe following eight points can not be said to be your shell Scripting Learning Guide de all, at least let you write a reliable shell script.1. Specify bashThe first line of the shell script, what should be after #!?If you ask someone about this question, the answers may vary from one person to another. I've seen/usr/bin/env bash,/bin
Shell Scripting Study Guide Mechanical industry publishing ISBN 987-7-111-25504-82nd Chapter2.4Primary traps1. Today's systems, for #! The length limit for this line is from 63 to 1024 characters, try not to exceed 64 characters.2. On some systems, the command-line section contains the full path name of the command. Some systems do not, however, and the command line part is passed to the referenced program
Advanced Bash-scripting Guide (19th): maximum common divisor of two integers, bashscripting
The example selected in this article is from the book "Advanced Bash-scripting Gudie", translated by Yang chunmin Huang Yi
1 #! /Bin/bash 2 # calculate the maximum common divisor of two integers 3 4 E_BADARGS = 65 5 6 # if the number of parameters is not 2, exit 7 if [$ #-
the first field separated by a colonSORT-T:-k2nr,2 file starts at field 2, reverses sort by numeric type and ends at end of Field 3SORT-T:-k2n-k3n file is sorted by the second column, sorted in the third columnSORT-T: Unique record matching-k2n-u file output key Value field4.2 Delete DuplicatesSort file |uniq displays a unique sorted recordSort file |uniq-c count unique sorted recordsSort file |uniq-d Show only duplicate recordsSort file |uniq-u show only records that are not duplicated4.3 Refo
. Dialog.messagebox ("Found ' Warning '") elif (index = = 3): CRT. Dialog.messagebox ("Found ' #") # ReadString () is similar to the Waitforstrings feature, waiting for a few characters to appear, but it also reads all the characters that appear before the string. Crt. Screen.readstring ([string1,string2..],[timeout],[bcaseinsensitive]) 1, string, required parameter, waiting string, at least one, can be a special character such as: \r\n;2 , timeout, optional parameter, timeout, returns False whe
Advanced Bash-scripting Guide (17): use more to view gzip files,
The example selected in this article is from the book "Advanced Bash-scripting Gudie", translated by Yang chunmin Huang Yi
1 #! /Bin/bash 2 # use more to view the gzip file 3 4 NOARGS = 65 5 NOTFOUND = 66 6 NOTGZIP = 67 7 8 if [$ #-eq 0] # [$ #-eq 0] has the same effect as [-z "$1"] 9 then10 echo "U
Advanced Bash-scripting Guide (18): [[] and [] some special cases, bashscripting
The example selected in this article is from the book "Advanced Bash-scripting Gudie", translated by Yang chunmin Huang Yi
For example, [1-eq 1] [-n "'echo true 1> 2'"] # true. 1> 2 indicates to output the standard output to file descriptor 2 (standard error output: screen) 3 [2-
Advanced Bash-scripting Guide (15th): Test broken link files (broken link ),
The example selected in this article is from the book "Advanced Bash-scripting Gudie", translated by Yang chunmin Huang Yi
1 #/bin/bash 2 # use a pure shell script to find the bad link file 3 # What is broken link? For a symbolic link (soft link), if you first Delete the original file, i
Previous ArticleArticleThis article introduces the basic knowledge of the. NET Dynamic scripting language script. Net Getting Started Guide quick start. Script. Net IDE environment
Previously mentioned method for writing script. Net scripts, which is written in Visual StudioCodeAnd then run the code in the form of debugging. This method is suitable for the use of Visual Studio's powerful debugging function
substitution or deletion
stty
locale
display locale settings
# Replace the "ABC" that appears in the file with "XYZ"Cat file| tr "Abc" "Xyz"> New_file# Use the TR command to "unify" the case of lettersCat file| tr [A-z] [a-z] > New_fileCat file| tr [A-z] [a-z] > New_file# Replace the number 0-9 in the file with A-jCat file| tr [0-9] [a-j] > New_file# Delete the "Snail" characters that appear in file files
variable), returns the old value to the variable after the result has been generated, and then executes the variable plus 1 operation. In contrast, in the prefix (prefix), the operand is placed in front of the variable, the variable is added 1, and then return the new value to the variable,--the working method and + + is similar, but its operation is to reduce the variable by 1.7. Exit statusEach command exit returns a small integer value to the program that refers to it, which is the well-know
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.