Address: http://blog.csdn.net/gtuu0123/article/details/6013741
(1) substr in awkSubstr (source string, start index, length) Start index starts with 0Example:Awk '{$ A = substr ($, 2); print $ A;}' filenameAssume that only one row in the file is
Not comprehensive but practical.
1. xargs -- pass the output of one command to another
1.1 Find./modules/-name *. So | xargs CP-T $ {packdir_so }/
Output find to CP as the Source Parameter
-T specifies the target path of the CP.
2. Date =
A classic debugging method in shell scriptsAuthor Yu Chao Email: yuchao86@gmail.com
The common method for testing shell scripts is to use echo to output data to check whether the data meets the requirements.ProgramThe value of the operation.If the
1. General methods
Regedit/E c: \ 3389.reg "HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server \ winstations \ RDP-TCP"
Type C: \ 3389.reg | find "portnumber"
Del c: \ 3389.reg
2. XP and 2003Reg query
ShellA process is a process that executes other processes, but when executing a command,ShellThe process instructs the kernelProgramRun the command separately as another process and write the output to the terminal.
Through Command Options, we
Reading the Linux Shell written by othersCodeSuddenly found a lot of code similar to the following format:
["$ Pro" = "1"] & ckssl = "-- SSL" [-n "$ IP"] & ckip = "-h $ IP" [-n" $ port "] & ckport ="-p $ port"
I didn't understand why I wrote
I recently looked for a job. I took a pen test to get the Sorting Algorithm and reviewed the hill sorting. I didn't even understand it when I checked it all over again !!! ⊙ B Khan, So I sorted out the problems I encountered when I checked the code
An operating system can be divided into two parts: kernel and shell ).A shell program encapsulates the kernel that communicates directly with the hardware: hardware kernel shell Application
In some operating systems, the kernel and shell are
Alas, I didn't learn shell, and my colleagues encountered a problem. I asked my classmates if it was necessary to learn it. It wasn't complicated, but the syntax was too strange and I really didn't understand it.
I wrote a simple script.
#!
When writing a program, you sometimes need to call the shell script in a Java program. You can use the exec method of runtime to call the shell program and run the script.
Each Java application hasRuntimeClass instance, so that the application can
Source program from http://www.unixreview.com/documents/urm0108e/
The statement in the original program that filters out its own process has a bug. If you put killprog in the path of a $ PATH variable and then start killprog from other paths, $0
1. Delete 0-byte filesFind-type F-size 0-exec Rm-RF {}\;
2. View ProcessesSort by memory from large to smallPS-e-o "% C: % P: % Z: % A" | sort-K5-NR
3. sort by CPU utilization from large to smallPS-e-o "% C: % P: % Z: % A" | sort-NR
4. Print the URL
I have been busy recently, and occasionally spend some time reading books to supplement my energy. Recently I am studying programming languages-I am very touched by the road to practice. What I 've learned by mistake is a more system, the complete
If you have a small requirement at work, you need to rename a series of files.
The original format is string_1.obj. Now you want to change the number in the file name to a fixed length. If the number is less than the number of digits, it is changed
Official Website:
Http://intgat.tigress.co.uk/rmy/extensions/index.html
The extension has the following functions:
Move the clock to move the time to the right
Favourites in panel displays shortcuts for your favorite programs on the top
The method for listing all Shell objects is not provided below. For more information, see Ishelldispatch: Public idispatch {// you must specify the name of the control panel program. cpl suffix hresult controlpanelitem (BSTR szdir); // causes the
LinuxIf command
WhateverProgrammingLanguage is inseparable from conditional judgment. Shell is no exception.If list thenDo something hereElif list thenDo another thing hereElseDo something else hereFi Ex1:#! /Bin/shSystem = 'uname-S' #
Hill sorting is one of insert sorting. The insertion sorting algorithm mentioned in the previous article (click to View Details) should be called "directly insert sorting algorithm ", the hill sorting algorithm introduced here is an improved direct
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