Overview
Write down this articleArticleThis was due to attending a tech. Ed course on window powershell. Although I have been paying attention to it before, I have never personally experienced it. Windows powershell is a new command line shell and
Interaction with powershell in wf4 beta1 provides two activities: invokepowershell and invokepowershell .
Invokepowershell: Call A powershell cmdlet that does not contain the returned value. Invokepowershell can be used to call simple lelets and
Requirements: compare two text files, output line numbers and column numbers when not equal, and start unequal characters.
Method One: Compare-objectUsing the PowerShell command Compare-object is worth learning.
Copy Code code as follows:
Use Python to debug simple programs directly from the command line.WIN10 (PowerShell) Without tab completion, the operation is really troublesome.Online search learned, record, review with, hahahaEnvironment: WIN10 64-bit Python2,python3One: Install
These days in see PowerShell, feel very strong, a small task, is to use PowerShell to implement multiple files to retrieve thousands of lines of records in the script. Just beginning to use get-content combined with where-object to achieve, found
As a DBA, occasionally encountering data import into a database, suppose the business or development provides a script file containing millions of lines of INSERT statements, and these INSERT statements do not use Go for batch splitting, Then
Directory and file operations
A language can only be connected to external entities for more powerful functions, such as operating files and databases. In this way, data can be stored separately instead of in the memory. More powerful is network
Not Configured High
Reply content:Python is very friendly to Windows, so don't scare new people. To download and install a activepython, you can give the Vc/c# Programmer a helper tool. Another ulipad. When developing a tool, you can use Python with
Catalog 1, get current directory--OS.GETCWD () >>> import os>>> s=os.getcwd () #获得当前运行脚本所在目录 >>> s ' c:\\python27 ' For example, if you run test.py, entering the command returns the folder location where the script is located. For example, put
If you know the exact number of loops you can use for loops, the For loop belongs to the counting loop, and once the maximum number of times is reached, the loop automatically terminates. The following example loops through the sequence of 1-100 and.
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.