Alibabacloud.com offers a wide variety of articles about bulk directory submission, easily find your bulk directory submission information here online.
To illustrate the original file: Moving target: Step: 1. Find the file that meets the criteria and create the target directory find/root/-maxdepth 5-name ' *.log '-exec echo {} \;|sed "s/\/root\//\/root\/mv2\//g "|sed" s/[^/]*\.log//"|awk ' {System (" Mkdir-p "$")} ' 2. Find the file that meets the criteria and move the file to the destination directory find/root/-maxdepth 5-name ' *.log '- exec echo {} {}
the classification of the failure to submit the situation, and then reduce the value of the site, turned to some low quality, not high visibility of the site, the success rate went up, but the quality down. Because the threshold is proportional to the quality, since your site can be easily submitted and included, then other webmaster site can also be, so, this category of sites will be included in a lot of low quality sites and content pages, a large number will form a link factory signs, and r
degree of attention to the classification of sites on the site of a certain weight, of course, the search engine's ability to identify is also very strong, for some garbage classification directory platform, there is just the beginning of the classification directory platform, in the above submission site will become a search engine Depending on them as a chain
Since February 18 to establish their first independent blog began, I have a sense of responsibility, it is necessary to treat their own website, from the most scientific point of view to optimize the promotion of their own personal blog. So today I will first introduce the new station to promote the first step of the site directory submission, and the construction of the chain.
First of all, before referri
We all know that the new Web site into the ODP (DMOZ directory) generally take a long time, but you know: There are many sites will be included in a very short time, my first day of a website submitted, the next day was included, is my luck good? No no no! Below to tell you how I submitted the site.
1, honest and orderly to write a good site name and site descriptionDo not idealize the submission of the con
1, honest and orderly to write a good site name and site descriptionDo not idealize the submission of the content according to your wishes to write, remember: This is the people's territory, the person under the eaves, have to head. Website Name must truthfully write the full name of the company or organization, I have seen a lot of irregular web site name, such as "China's largest XXX" "Product 1, product 2, product 3" and so on. Website description
Write a class that traverses directories and replaces file contents in bulk
Write this class before you need it.
Function:
1 traversing all files in the directory (you can specify the suffix name)
2 Bulk Replace file contents (regular, String)
3 Batch replacement file suffix name
4 Batch Replacement file encoding
Use Example:
PHP Code
$dirExplorer
Bulk deletion of any specified extension file in the current directory and sub-directoriesToday compiled dev language files, all language files do not need, only keep the language files in Chinese, write a batch processing and easy to use later1 @echo off2 Setpath=%cd%3CD/D Path4DEL/F/S/Q/A *. TLog5DEL/F/S/Q/A *. Cache6DEL/F/S/Q/A *. txt7DEL/F/S/Q/A *. pdb8DEL/F/S/Q/A *. Resources9DEL/F/S/Q/A *. VSPSCCTenDE
To download all the images of this site directory, there are some mobile wallpaper. The URL of each picture is only a different file name.The Curl command does not work in this, and its regular match applies only to the file name of the rule, such as the Foo1,foo2,foo3.....,curl command requires that each URL be deterministic.Using the wget command alone, Wget-r-np-nd all the files in the download directory
Today released the newly completed Python script toolbox of the bulk replacement directory for all specified extensions in the file with the specified string, command-line parameter processing instead of using the Argparse library, the Python code is as follows:#!/usr/bin/python2.7#-*-encoding:utf-8-*-# Copyright [emailprotected] "" "Replace old string with new string The specified string from the all files
We often encounter some problems like directory permissions can not be accessed, there may be hundreds of or thousands of files or files directory, below I wrote an example of using PHP to bulk change directory permissions.
The code is as follows
Copy Code
Gets the file
Grammar
chmod (file,mode) parameter description
File required. Specifies the documents to be inspected.
mode is optional. Specify the new permissions.
The mode parameter consists of 4 numbers:
The first number is always 0.
The second number specifies the owner's permissions
The second number specifies the permissions of the user group to which the owner is a member
The fourth number stipulates the rights of all other persons
Possible values (if you want to set multiple permissions, make a total
[Linux] Bulk conversion file encoding for the entire directory is UTF-8; #!/bin/bash-#===============================================================================## FILE:conv.sh## USAGE:./conv.sh##DESCRIPTION: A script that supports recursive conversion of the entire directory GB2312 to UTF-8;##options:---# Operating system;#bugs: for the Requirements:linux ke
Under src New, struts.properties file, filename is fixed, used to change some of the default configuration.
You can find the default configuration file under Struts2 jar package, and generally do not modify that file.
Struts.multipart.savedir=d:/upload
struts.multipart.maxsize=9000000
Struts2 uploading files is not as simple as the direct upload we imagined.
You need to upload it to the temporary file first, and then move to the specified directory
=number the maximum recursive depth (INF or 0 for Infinity).-L1 (L one) recursively downloads only the contents of the specified folder, not the next level of the directory.--delete-after Delete files locally after it is finished-K,--convert-links convert non-relative links to relative links-K,--backup-converted back to X.orig before converting file X-M,--mirror equivalent to-r-n-l INF-NR.-P,--page-requisites download all pictures showing HTML files*
[Email protected] wyb]#CatTest10.SH #!/bin/bash# using the For loop/test10 directory 10 HTML files are created in bulk by random lowercase 10 letters plus a fixed string Oldboydir=/root/wyb/test10/[ ! -D $dir] mkdir-P $dir forIinch`seq Ten` Do Touch$dir`Echo$RANDOM |md5sum|Cut-C1-Ten' _oldboy.html Done[email protected] wyb]# bash test10.SH[email protected] wyb]# CD Test10[[email protected] test10]#ls3fb16
Bulk delete files in a specified directory
Deletes all files at the end of the. Log in the current directoryFind. -name "*.log"-exec rm-rf {} \;
Note:There is a space between 1.{} and \2.find. There are also spaces between the-name3.exec is a subsequent command, {} content represents the previously found file
Delete files in the current directory that were mod
#-*-coding:utf-8-*-ImportOS, Sys,re,shutil fromNtImportchdir#read Chinese path u 'Path=u"d:\\zhyue93\\backup\\ personal files \ \ video \\10, c#\\4, C # language advanced features"dirs=os.listdir (path)#Sort 1,2,3...10,11dirs=sorted (Dirs,key =LambdaI:int (Re.match (R'(\d+)', i). Group ()))#Renaming a filei=10 forDirinchdirs:i+=1Newdir=Os.path.join (path,dir) newfiles=Os.listdir (newdir) forFileinchNewfiles:#before rename, use the ChDir () function to enter the path where the target file is loca
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.