Shell command Bulk modify picture filename _linux Shell

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

Shell script implements whether the file is consistent across the line server _linux shell

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

Shell script to see the real footprint of process memory _linux Shell

Copy Code code as follows: #!/bin/bash #****************************************************************# # SCRIPTNAME:PM # AUTHOR:OSDBA # Create Date:2010-01-31 # Modify Author: # Modify Date:2010-01-31 # Function:show processes Memory

Print process number (PID) _linux shell with interface provided by kernel

C File Printpid.c Copy Code code as follows: #include #include #include #include #include static __init int printpid (void)//install module functions{struct Task_struct *task,*p;struct List_head *ps;int count=0;PRINTK

A method for removing intermediate nodes given the middle node pointer of a linked list _linux shell

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

Linux automatically restarts Tomcat script sharing _linux Shell

Copy Code code as follows: #!/bin/bash # #chkconfig: 35 88 14 #description: Tomcat Auto Start script #script by Okhelper Case "$" in Start echo "Here is start script ..." java_home=/usr/jdk1.6.0_13; Export Java_home Jre_home= $JAVA

Parsing the implementation code of the shell sort _c language

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 script Implementation Batch collection Love station keyword library _linux shell

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 shell to delete the files that correspond to the specified information and fields in the datasheet _linux shell

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

Summary of array operations in shell and bubble sort implementation script sharing _linux Shell

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

How to implement core file automatic generation of configuration files _linux Shell

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

Shell script implementation of memcached process monitoring _linux shell

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

Shell script implementation balances process load into multi-core CPUs _linux Shell

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

Shell script gets the running time of the process _linux shell

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

jquery Shell Plug-in jquery.fancybox.js usage Example _jquery

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

Analysis of Java Hill Sort (Shell) algorithm _java

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

Shell Script Debugging Tips

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:

fail2ban-0.8.14 Shell Automatic deployment script

#!/bin/bash#fail2ban-0.8.14.tar.gz#python > 2.4v#user:roottar  -zxf  fail2ban-0.8.14.tar.gzcd /root/fail2ban-0.8.14/python setup.py install cp /root/ Fail2ban-0.8.14/files/redhat-initd /etc/init.d/fail2banchkconfig --add fail2bansleep 1rm  -rf /root/

Shell implements a second-level task in the background

[email protected]:~# ls while50.sh while50.sh[email protected]:~# cat  While50.sh #!/bin/bashlogfile=/root/192.168.1.50.ping.logwhile truedo    echo  -n $ (date +%y-%h:%m:%s)  >> $logfile     ping -c1 -w1  192.168.1.50 >/dev/null     #ping   192.168.

Shell Special Symbols

~ 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

Total Pages: 541 1 .... 520 521 522 523 524 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.