Name: satool PS: it can be called a "Silly Rabbit" by a colleague ")
Function: This script can run commands in batches, copy files, and perform simple logon. You can quickly log on without remembering the specific IP address of the application server.
Note: batch management can be performed by group, with a single thread. It is not applicable to the problem that
Linux batch copy data script
Recently, I want to get a Linux-based Batch Transfer copy deployment remote server scriptConcept: 1. establish equivalence with remote clients2. Copy data or execute remote server commandsThe automated
Batch scp script-copy files from multiple machines in order to conveniently obtain logs from multiple servers, a simple script is written specifically for copying server logs in batches to the machine where the script is executed. The sc
PATH
$PATH
Path to the executable file
REN
Mv
Rename (move)
RENAME
Mv
Rename (move)
RD
RmDir
Delete Directory
RMDIR
RmDir
Delete Directory
SORT
Sort
Sort files
Time
Date
Show System time
TYPE
Cat
Output files to stdout
Xcopy
Cp
(
Shell scripts are designed to help us focus on certain things. Instead of us doing it. To some extent, it does bring us great convenience. Here is a script that performs a bulk copy paste file. first, the use of the scene
When the app is upgraded, you need to change the version number under the corresponding project. If there are more projects, it would be too m
BAT bulk strip file first line
Copy Code code as follows:
Set N=1
: Starline
For%%j in (*.txt) do (
: 3
If exist D:\work\test\new_%n%.txt (set/a N+=1goto 3)
Set File=%n%.txt
for/f "Skip=1 delims="%%i in (' type '%file% ') do (
Echo%%i >>d:\work\test\new_%n%.txt
)
set/a N+=1goto Starline
)
:: Start
Recently, you need to use Sourceinsight to view the project code developed under Linux, and we know that the default encoding format for text files in Linux systems is UTF-8, and the default encoding format for Windows Chinese is Gb2312. The coding format in the system is different, the key is sourceinsight unexpectedly do not support UTF-8, resulting in the project code in the Chinese comments all garbled!
Since Sourceinsight does not support UTF-8 encoded files, we have to find a way to conve
end###################
Variables are Weburl and index
2, site list file Weblist.txt
Copy Code code as follows:
Www.aaa.com \\/
Bbs.bbb.com \\/
Www.ccc.com \\/
Weblist.txt has two field, the first field is the domain name, and the second field is the URL of the site. If the first domain name is www.aaa.com/
3, Batch generatio
Note:1. If there is no forfiles.exe under XP, copy the Forfiles.exe file under Windows2003 to the System32 directory of XP to use the Forfiles command.2. This document applies to Windows client operating system XP Win7/8/10,windows server-side operating system server 2003/2008/2012/2016.3. If there are mistakes, trouble points out, thank you!Forfiles.exe and HelpDescribe:Select a
1. Summary
(1). ". Bat": This is the suffix of Microsoft's first batch of processed files and can be run in almost all Windows operating systems.
(2). ". cmd": it is a command line script designed for Windows NT. It is designed for cmd.exe shell and does not have backward compatibility with command. com.
(3) what is currently known. CMD and. the difference in the BAT fi
by zzzevazzz@ph4nt0m.org
The advantage of encoding data with BASE64 is to compress the size (relative to bin2str), with the disadvantage of increasing processing time and scripting complexity.
Because the efficiency bottleneck is the step of creating a VBS in BAT, it is generally cost-effective.
Writing files with Adodb.recordset is much better than Debug.
Most of the things are scripted, and the batch process simply generates the
REM file name set DNS name server address Bat batch script file. batREM Use set the DNS name server address for the wireless network connectionnetsh interface ip add DNS "Wireless network connection" 8.8.8.8netsh interface ip add DNS "Wireless network connection" 8.8.4.4netsh interface ip add DNS "Wireless network conn
Here are the steps and methods for Oracle batch script file execution1. Create script file (xx.sql):For example, file createtableCreate table tb1 (ID varchar2 (), Name varchar2 (50)); commit;/You can create multiple, but note that
to internal sharing. You can download and run the script during editing.
This script can automatically determine whether the script is run or manually modified. If it is modified, it will not automatically add new records. If it is not modified, a new row of records will be added at the bottom.
Note: If the IP address is pointed to by multiple domain names, a
Using batch files and VBS scripts to automate Web site video recording
Now television stations basically have their own portals, we can make full use of the advantages of the network to expand the impact of local television stations. In fact, the practice of hanging the daily ace of local TV shows on the website has become one of the necessary steps to build a television website. But then the problem is: The daily need for manual recording process
This article mainly introduces the writing shell script, uses the ICONV batch to change the file coding the script code, needs the friend to be possible to refer to under.
Usage examples:
CD ~/workspace/xxxproject
~/iconv_shell.sh./*java
Okay, go straight to the code ~ ~
#!/bin/bash
If ["$#"!= "2"]; then
A script that converts any file into a batch.The advantage of Base64 encoding is that the data size is compressed (compared with bin2str). The disadvantage is that it increases the processing time and script complexity.Because the efficiency bottleneck lies in the process of generating vbs in bat, it is still possible.Writing files using ADODB. Recordset is much
------Create this file Autoinstall.batThe contents are as follows:@ECHO off@REM Add Adb.exe to PathECHO initialization ...@SET path=%path%;%cd%\adb@REM SET PATH@REM an infinite loop of labels: LOOPECHO waits for you to insert your phone ...ADB wait-for-device@REM Loop Install apk file in this directoryFor%%i in (*.apk) do (ECHO is installing:%%iADB install%%i)@echo offECHO is installed; change a cell phone!
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.