Copy Code code as follows:
#!/bin/bash
ping= ' which ping '
Date= ' Date +%y%m%d%h%m '
Tail= ' which TAIL '
Log=./ping$date.log
hosts= "selboo.com.cn 221.130.191.97"
count=200
For MyHost in $HOSTS
Todo
count=$ (ping-c
Copy the files under the Bill folder to a certain rule (file name parity) under the Bill1,bill2 folder.Update BILL1,BILL2 Processing Progress tab (update File.max)File3 is the label for the current latest file in the bill directory and will normally
Simple Google a bit, not fruit, so sent an email for advice, and soon have a reply.
Copy Code code as follows:
Path = "C:\test.jpg"
arr = Split (Path, "\")
FileName = arr (Ubound (arr))
FolderPath = Left (path, Len (path)-Len (FileName)-
Shell script to extract alert log for Oralce day
Copy Code code as follows:
#/bin/sh
#get Alert of Everyday
#then name of file is everyday_alert.sh
Dir= "/oracle/admin/bbdz/bdump"
num=$ (cat-n ${dir}/alert_bbdz.log | grep "'
A shell script that backs up a database
Copy Code code as follows:
#!/bin/bash
#指定运行的脚本shell
#运行脚本要给用户执行权限
Bakdir=/backup
Month= ' Date +%m '
day= ' Date +%d '
Year= ' Date +%y '
Hour= ' Date +%k '
min= ' Date +%m '
Take a look at the contents of the original file:
Copy Code code as follows:
Root@localhost ~]# Cat File.txt
Hello World
A:b:c-h-N
A:b:c-h-N
SED deletes related rows based on conditions:
Copy Code code as follows:
$#: Number of parameters passed to script$*: Displays all parameters passed to the script in a single string. Unlike positional variables, this option argument can exceed 9$$: The current process ID number of the script run$! : The process ID number
Linux shell script detects tomcat and restarts automatically
Background Run command sh xxx.sh &View background tasks: JobsSummoned to the front desk: FG Jobs number
The code that can delete the while loop is put into the crontab, and the script
Shell version Nginx log spider crawl View script
Change the path of the Nginx log before usingIf more spiders themselves in the code Spider UA array Riga can
#!/bin/bash
m= "$ (date +%m)" Case
$m in
"") m= ' before ';;
") m= ' Feb ';;
"
Recently in the debugging server iptables, oneself made a timed turn off iptables, but at night home rarely open a computer, so can not go to start iptables, of course, you may say, why not cancel timed shutdown iptables, I can only say that
Company colleagues today to find me help modify the filename, I see, well, hundreds of files to rename, file name format is _01.png _02.png so in turn, colleagues asked the front of the "_" to remove, fortunately, the request is simple, did not let
Sometimes you need to compare files consistently in your work, and you can do it with the following script (simpler): share it, hoping to help friends with the same needs
Copy Code code as follows:
#!/bin/bash
#对比服务器上文件是否一样
# Richard
The problem is as follows
Input: Pointer to node C in list A->b->c->d->e
Output: no return value, but new list becomes a->b->d->e
Answer:
Thought for a long time did not think out, read the hint to know the solution. Here's a little trick. To remove
A: This script runs the machine, LinuxB: The machine that installs the JDK, Linux
First, on machine A on which the script runs, determine that you can log on to machine B on the JDK by SSH without a password, and then you can run this script on a:
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