The 1.WC:WC command is a statistical tool used primarily to display the number of rows, words, and bytes that a file contains. The WC command is the abbreviation for Word count.Command format: WC [option parameter] [file]Option parameters:-C
#
Administrator
$
Normal User
Drwxrw-rwx
d (Directory, file "-") rwx (owner) rw-(group) rwx (others)
Pwd
Print working directory prints the current working directory
CD [~] [
PWD View current work pathCD into a folder ... Switch to Parent directory/switch to the root directoryLs-l view in long format that-A view information for all subdirectories and files, hidden files can also be viewed-D View the properties of the
Guide
This article will cover the most common tools used by Linux to process text using the shell: Find, grep, Xargs, Sort, uniq, tr, cut, paste, WC, sed, awk, and the examples and parameters provided are the most common and practical. The
+++++++++++++++++++++++++ +++++shell Programming +++++++++++++++++++++++++++++++1. Basic Regular Expressionsregular expressions and wildcard characters:regular expressions are used to match conditional strings in a file, Regex contains matches, grep
java.io Stream Class library
There are four basic classes in the Java.io package: InputStream, OutputStream, and reader, writer classes, which deal with byte streams and characters, respectively:The JDK1.4 version began introducing a new I/O class
According to my experience, I think that the following file structure is the best:
----------------------------------------------------------------------
File name extension:. php
? Die (' ACCESS denied! ');? >
Email=ask4more@13.net &
Author: Redfox Mail: ask4more@163.net
Home: http://netnote.oso.com.cn
I believe everyone in the online application of free PHP space, if it is a novice, generally do not have MySQL available to use, then we solve the data processing is one of the
The examples in this article describe the Zend Framework page-class usage. Share to everyone for your reference, specific as follows:
1, pagination class pagination.php, it is best to put this class in the Zend directory
Class Xy_pagination
turn from: http://efe.baidu.com/blog/text-truncating/
misunderstanding
In the design of products, because many product managers, engineers do not have the "character is not necessarily equal width" concept, often give "more than n characters
Hbase is a distributed, column-oriented, open-source database that is built on Google's bigtable theory and based on the Hadoop HDFs file system. HBase differs from a generic relational database (RDBMS). is a database that is suitable for
server| function
1, statistical functions AVG, COUNT, max, Min, sum
Most parties do not count rows with null values. You can work with distinct to remove duplicate rows. Can be grouped with GROUP by
2, Mathematical functions
SQRTCeiling (n) returns
ObjectiveThis is a very common requirement in this article, for example, we have a user-origin table that is used to mark the channel from which the user is registered. The table structure is as follows ...Origin is the source of the user, the value
aggregate function: (ignores null data) There are 5 commonly used: aggregating all the data in a field in one piece1, sum (field name): Sum2, AVG (field name): Averaging3, max (field name): Ask for maximum value4, min (field name): Minimum value5,
stitching field-concat () function The values are concatenated together to form a single value. Note: Most DBMS use + or | | To implement stitching, MySQL uses the concat () function to implement.go to space function-trim function Trim Remove the
1, installation Nodejs2. Install MySQL NPM packageAddress: Https://github.com/felixge/node-mysqlNPM install MySQL3, the corresponding API view and call:var mysql = require (' mysql '); var connection = mysql.createconnection ({ host '
1. Count the number of files in the/usr/bin/directoryls WC -L Ls/usr/bin is used to display a list of files in this directory, WC is the command to count the number of words,-l is used to count rows If you use the following command "LL", then the
seq 1 100The notation of the seriesWc-l count Rows-C bytes-W wordsbasename returns a basic file name for a stringDirName leave the non-directory part except the file nameRead-p "" Name prints a hint and waits for input input information to be given
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.