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
Copy Code code as follows:
#include
using namespace Std;
void Shellqin (int a[],int N)
{
int GAP=N/2;
int i,j;
for (; gap>0;gap=gap/2)//Set the initial gap, according to the Gap group, Gap in accordance with GAP/2 decline
{
After the
Shell Batch collection Love Station keyword library, the whim of the play, not perfect, first put out, later slowly update, although the function is simple, similar tools are also many ready-made, but after all, it is their own writing tools,
Use the MySQL shell command to read the database information, delete the specified fields, and the corresponding files of the field, the Linux platform.
The preceding variable is defined as the data base configuration
Copy Code code as
Shell Array Description:
Copy Code code as follows:
Array variable definition:
$ arr= (1 3 6 8 2 5 9 0 7 4)
Get first element by default
$ echo $arr
By subscript access, the second element of the array below, the shell array
This article describes the implementation of the core file automatic generation configuration method, the following steps:
1. Edit the Environment configuration file, let the shell start automatically set Ulimit
Vi/etc/profile
ulimit-c
The Web server uses memcached, but does not know why memcached always hangs (basic 20 minutes ~ 50 minutes), causes some website page to visit the time error; When you define the log, you cannot see what ; Preliminary determination is related to the
Sometimes, because of the architectural design or other business itself characteristics, resulting in some applications using CPU is very uneven, so business processing concentrated on one CPU, while the other CPU idle sleep. Here is a simple
In our system, I wrote a script to update some repository on a regular basis, but occasionally I encountered problems, such as when git pull might be stuck there (possibly due to a network problem at some point), which would hinder the next
This example describes the Jquery.fancybox.js usage of the jquery Pinball plug-in. Share to everyone for your reference, specific as follows:
FancyBox is a jquery plug-in, powerful. Support to enlarge the picture to add shadow effect, for a group
First, take an integer d1 less than n as the first increment, dividing the entire record of the file into D1 groups. All records that are multiples of the DL are placed in the same group. A direct insertion sort is performed within each group, and
0. Standard format for professional scriptingFunction 1 function 2main function main $*1. Use the Dos2unix command to convert scripts developed under WindowsDos2unix is not installed by default and can be installed in Yum# Dos2unix web_jk.shdos2unix:
~ Home Catalogue ls ~"Inside the inverted quote is the command echo ' ls ' | ' Echo ls ' | echo ' echo ls ' | ' echo ' echo ls ' replace command $ ()! Take sung with the historical Command (!123) 123 is the history display#代表注视信息$ take Variable
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