Gets the names of all the folders under the specified directory/usr/and outputs:
Shell code:
1 #!/bin/bash
2 #方法一
3 dir=$ (ls-l/usr/|awk '/^d/{print $NF} ')
4 for I in $dir
5 do
6 echo $i
7 done
8 #######
9 #方法二
-dir in $ (ls/usr/) one do
[- D $dir] echo $dir c13/>13
Done # #方法三
ls-l/usr/|awk '/^d/{print $NF} ' # # In fact the same method one, directly can be displayed wit
Straint_type = ' U ' and au.table_name = table to query 4. Find the foreign key of the table (including the name, the table name of the reference table and the corresponding key name, the following is divided into multi-step query): SELECT * from user_constraints c where c.constraint_type = ' R ' and c.table_name = table to query Query the column name of the FOREIGN KEY constraint: SELECT * from User_cons_columns cl where cl.constraint_name = FOREIGN key Name Query the column name of the key re
(including the name, the table name of the reference table and the corresponding key name, the following is divided into multi-step query): SELECT * from user_constraints c where c.constraint_type = ' R ' and c.table_name = table to query Query the column name of the FOREIGN KEY constraint: SELECT * from User_cons_columns cl where cl.constraint_name = FOREIGN key Name Query the column name of the key referencing the table: SELECT * from User_cons_columns cl where cl.constraint_name = foreign ke
pool name"/config/XML> C:/myapppool. xml
The name of the application pool to be exported in yellow
Import a separate application pool:
% WINDIR %/system32/inetsrv/appcmd add apppool/in
Export a separate site:
% WINDIR %/system32/inetsrv/appcmd list site "site name"/config/XML> C:/mywebsite. xml
The site name to be exported in yellow
Import a separate site:
% WINDIR %/system32/inetsrv/appcmd add site/in
Reference: http://www.microsoftpro.nl/2011/01/27/exporting-and-importing-sites-and-app-p
Export methods of all application pools on IIS7 to bind domain names in batches and iis7 to batch
How to export all application pools on IIS7 +:% Windir %/system32/inetsrv/appcmd list apppool/config/xml> c:/apppools. xmlThis command will export all the application pools on the server, but some of them are unnecessary a
Get all the filenames under the folder is a common feature, today once again have this demand, all on the internet to find a lot, and write down for later use.Original: http://blog.csdn.NET/cxf7394373/article/details/7195661Original: http://qiaoxinwang.blog.163.com/blog/static/86096452010612139172/1 Char* FilePath ="D:\\sample";2vectorstring>files;3 4 ////Get all
The following is a complete executable program in VC:
# Include "stdafx. H"# Include # Include
# Define softpath "software // Microsoft // windows // CurrentVersion // Uninstall"
// Function: Lists All subkey names under a specified key.Boolmyenumkey (lptstrszkeypath){Hkey;Long result;
// Open the RegistryResult =: regopenkeyex (HKEY_LOCAL_MACHINE, szkeypath, 0, key_read, hkey );
If (result! = Error_succe
How to obtain the names of all tables in the databaseEach database managed by SQL Server has a view named sysobjects, Which is system-level,
Therefore, its fully qualified name is -- sys. sysobjects. This table stores not only the tables in the database, but also
All the "objects" in a database, including the table's primary keys, stored procedures, triggers, and
All file names in the Java scan folder.
MIS content project system, based on document Resource Management, needs to scan all the files under a folder, the required code implementation.
Package q. test. filepath; import java. io. file; import java. util. arrayList; import java. util. using list; import q. test. filepath. exception. scanFilesException;/*** @ author
I have recently studied the CMS topic of WordPress. One of the reasons is that I have already said that I will not publish a Chinese WordPress blog topic easily, because I really think it is worthless, in a few days, the bottom of the copyright will disappear. For a CMS topic, the category of the home page is naturally the most frustrating. After a few tossing times, I finally learned the new PHP skills for getting the names and IDs of
How to export all application pools on IIS7: bind domain names in batchesHow to export all application pools on IIS7 +:% Windir %/system32/inetsrv/appcmd list apppool/config/xml> c:/apppools. xml This command will export all the application pools on the server, but some of them are unnecessary and need to be deleted. F
() forRowinchresults:name.append (row[0]) #Print(name) forIinchName:self._cursor.execute (Name_sql%(i, target)) data=Self._cursor.fetchall ()#Python dictionary setdefault () function
#If the dictionary contains a given key, the value corresponding to the key is returned, otherwise the value set for the key is returned .
Result.setdefault (i, data)returnresult, Len (data)if __name__=='__main__': MySQL=MYSQL () flag=Mysql.connectdb ()ifFlag = =0:Print('Database connection Failed')
name, the table name of the reference table and the corresponding key name, the following is divided into multi-step query):SELECT * from user_constraints c where c.constraint_type = ' R ' and c.table_name = table to queryQuery the column name of the FOREIGN KEY constraint:SELECT * from User_cons_columns cl where cl.constraint_name = FOREIGN key NameQuery the column name of the key referencing the table:SELECT * from User_cons_columns cl where cl.constraint_name = foreign key reference table ke
The Shell (Bash) programming instance obtains all the file names (including folders) in a folder. Many of them do not understand it, so they record all the files they actually use, I hope the experts will give you more valuable comments. Thank you www.2cto.com [plain] #! /Bin/sh #============= get the file name ============= Folder_A = "/home/youname/ shell/gotfi
Procedure Searchfile (path:string);//Note that there must be ' \ ' behind path;VarSearchrec:tsearchrec;Found:integer;BeginFound:=findfirst (path+ ' * * * ', FAANYFILE,SEARCHREC);While Found=0 doBeginif (searchrec.nameand (Searchrec.attrListbox1.add (Searchrec.name);Found:=findnext (SEARCHREC);EndFindClose (SEARCHREC);End//===============================================================The above one only gets all the files under the current directory, i
PHP gets all the file names in the directory
1. Open the directory you want to manipulate, and point to it with a variable
Open the directory under the current directory under Pic subdirectory common.
$handler = Opendir (' Pic/common ');
2. Read all the files in the directory under the loop
/* Where $filename = Readdir ($handler) is the file name to be read each
Town Field Poem:Cheng listens to the Tathagata language, the world name and benefit of Dayton. Be willing to do the Tibetan apostles, the broad show is by Sanfu mention.I would like to do what I learned, to achieve a conscience blog. May all the Yimeimei, reproduce the wisdom of the body.——————————————————————————————————————————Code# OS operating system# Python cross-platform language import osprint (Os.listdir (Os.curdir))Result—————————————————————
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.