Tags: = = filter Res General Execution command Pre method HTTP listReprint Please specify source: http://www.cnblogs.com/blazer/p/7808639.htmlA more general method, all the system has been encoded, all the conversion, from the results to filter the encoding you need.If you execute: SH test.sh t1.csv, the T1.csv.head.result file will be generated and you need to filter the required encoding from there.Execute command:SH test.sh $fileNameScript file:if
This batch code is used to automatically back up the MongoDB database on a Windows server, and a backup folder is automatically created for each backup
1. To prepare a bat file, which reads as follows:
Copy Code code as follows:
@ECHO off
MD d:\deployment\mongodb\data\backup\%date:~0,4%-%date:~5,2%-%date:~8,2%\%time:~0,2%-%time:~3,2%
Mongodump-h 192
How to quickly create more than one folder at a time, usually small white always right-click, and then click New Folder, small white is small white, do not know what is the script, hehe!On the Internet to see a simple method, really convenient, is to build a bat fileAnd then add a DOS MD command on it, it is important that their memory is also general, do not have any conditioning, hey, so afraid of their own back to find themselves and forget, (right
above command is obviously impossible to achieve. In this case, other practical batch tools are needed, the famous and practical Testif,string,aset,batchman,wbat, etc., can be downloaded in the scripting tools in the DOS software category download. Using the tools above in a batch file can be very powerful and can even accomplish the functions of many high-level
The copy of ********.bmp or copy of copy of ********.bmp such files are uniformly named ********0.bmp or ********00.bmp format, and the number of the following 0 represents ********. The number of BMP occurrences +1. Wrote a small script below:
The code is as follows:
Import OS"""This program is used to rename the
For windows xp pro and later systems, the windows user name and password are stored in the network sharing verification, Intranet or proxy Domain Verification, runas/savecred, and other methods, you can manage the passwords of users and accounts in the control panel, or you can run control keymgr. dll.
Credentials and Protect in the user directory % appdata %/microsoft save these usernames and passwords. After deleting these two directories, restart the system to clear and save the dynamic pa
Discuz! X3.2 batch add your python script, x3.2pythonDiscuz! X3.2 add your python scripts in batches
Set up a Discuz! The X3.2 environment is used for work. When users need to be added, no proper tool is found. Although my colleagues finally solved the problem by pressing the key wizard, they decided to write a piece of code to stay, which may be useful.The reason is that Python is not PHP, but Python is
Role:Copy the SSH public key of the current machine to another machine. In order to realize from the current machine can ssh without password landing to other machinesUsage:1) Write the IP address you want to add to a file. For example, host2) Save the script as an SH file, such as Install_ssh.sh set the operational permissions3) rewrite the password settings in
Role:Copy the SSH public key of the current machine to another machine to enable SSH login to other machines from the current machine without password.How to use:1) Write the IP address you want to add to a file, such as host2) Save the script as sh file, such as Install_ssh.sh set executable permissions3) rewrite the password settings in the
1 " *.pid " ` 2 for inch $head _files 3 Do 4 ' {print $} ' | Xargs Kill-95 rm-f $file6 DoneCode as aboveExplain:1. Find all the PID files in the./fmsconf Directory2. Traverse the found file3. Start traversing4. Separate explanations:1. Cat $file: Print out the contents of file files2. awk ' {print $} ': Print the first unit character3. Xargs: Use the previous output as the input for this4. kill-9:
Write a script to copy the folder.
Principle: first package the folder to be copied with tar, then copy the package, and then unpack the package.Receive two parameters. If the parameter is smaller than 2, an error is returned.If the target folder is not a folder, an error is returned.If the source file (folder) does no
Copy the following to Notepad, save as Pandakiller.bat, and then double-click Pandakiller.bat. This script not only has the effect of purging, but also prevents the virus from creating its associated programs again.
Also note that in order to take care of the vast majority of users, this script has been removed from the general htm,html,asp,aspx,jsp,php
1. set bakupfolder = F: \ backup \Backup files are stored in the directory F: \ backup \ (this directory must be created in advance)2. By default, each database is placed in a subdirectory with the same name under bakupfolder (automatically created by the script); When lay_in_subfolder is set to 0, it is directly placed in bakupfolder3. The time string when the backup is automatically added to the backup file
As a daemon ape, it is often necessary to copy a bunch of assemblies (DLLs) or applications (EXE) to multiple servers, implementing code logic updates for the program to test new functionality or change logic. Here is a self-implemented PowerShell script that allows you to replace the DLL or EXE on multiple Windows machines.A Scripting usesFor easy copying of multiple files to multiple servers.Two Scripting
1. from files under the root folder of the FTP server to the specified folder Format: ftp-s:[configuration file] [FTP address] such as: Ftp-s:c:\vc\ftpconfig.txt 192.168.1.1 Create a batch file: named Test.bat (name can be casually, for easy operation, directly named 1.bat) and then copy the above contents Ftpconfig.tx
Have you ever imagined yourself becoming an IT elite, a sea of code, a day reading the world that no one else could understand, and what would it be like to ponder the truth through the code? Perhaps you will say, I have not learned the code, also can not be a programmer, how to feel? In fact, if just want to understand the writing program code to achieve some automated processing of happiness does not require advanced theoretical knowledge and protracted learning, TXT this weekday most common t
Tags: mysql batch processingA batch file that was written earlier when the MySQL interface was debugged.Register to start My_install.bat@echo Offset Mysql_dir=%~dp0rem set mysql_dir=%cd%if not "%mysql_home%" = "" ( If not "%mysql_home%" = = "%mysql_dir%" ( echo mysql_home=%mysql_home% = mysql_dir=%mysql_dir% goto my_ends )) Else ( set Mysql
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.