WC
StatisticsThe number of words, lines, and characters in the file.
WC syntax
[Root @ WWW ~] #WC[-LWM] Options and parameters:-L: only list rows;-W: Only the number of words listed (one English word );-M: The number of characters;
WC
Preface written using BASH Shell
ProgramThe for loop is often used, especially from 1 to 100. Here we record several types of loop method classes in shell from 1 to 100.
C Language
For (I = 1; I In usage
For I in {1 .. 100} doecho $ idone
SEQ
Preface I haven't written a shell script for a long time. Today I can see such a requirement in the group as follows: I also reviewed the shell script and wrote it easily.
ProgramAfter testing, I basically passed the train of thought.
First,
Preface shell script writing can be modularized or functional. For example, test1.sh can complete an independent function and test2.sh can also complete an independent function, but test1.sh is required as the premise. Therefore, in order to save
In shell scripts, quotation marks are usually used, but what are the differences between quotation marks?
Single quotesPurpose: To prevent text conversion. Except for the single quotation marks, all words in the single quotation marks are output as
Why do we have to work overtime, not occasionally. If a large number of people work overtime due to our ability problems, we can only say that the HR department has recruited the wrong person. We should not come here to dismiss us. How many
Standard Input and Output
When executing a shell command line, three standard documents (stdin) are automatically opened, which usually correspond to the keyboard of the terminal. stdout) and stderr correspond to the terminal screen. The process
Use VC # easily create SQL Shell
(Author: mikespook | Release Date: 354-10-7 | views)
Keywords: C #, database, extended stored procedure, Vulnerability
This article has contributed to the hacker security base. The article is owned
#! /Bin/bash # script filename: addbook. bsh # comment: add info to datafile # datafile: Conn. dat # initialize the variables datafile = "Conn. dat " name =" " phone =" " address =" " email =" " # Check in argument list then add info to
I haven't written the script for a long time, and I forgot it. I tried to write it today. I have to check many things. I will write something simple or difficult every day, there are no technical skills. In short, it is good to practice more.
The
Publicc void setalpha (INT alpha)Alpha range: 0 ~ 255
This method is supported from eclipse3.4.
/*** Sets the operator's Alpha value which must be* Between 0 (transparent) and 255 (opaque ).* * This operation requires the operating system's advanced*
Hill sorting was named by computer scientist Donald L. Shell. He discovered the hill Sorting Algorithm in 1959. Hill sorting is based on insert sorting, but a new feature is added, which greatly improves the execution efficiency of insert
From: http://www.diybl.com/course/3_program/shell/shelljs/200862/119742.html
A regular expression is a text mode consisting of common characters (such as characters A to Z) and special characters (such as metacharacters. This mode describes one or
Preface
The time complexity of determining whether an element exists in an array is generally O (N), because the common practice is to traverse the array and check whether the data to be searched exists.
Here is a method for determining
1. Configure the vro and go to http: // 192.168.0.1/to start setting.
Select "forwarding rules" -- "virtual server" -- configure as follows, IP address for your local IP Address
Select "forwarding rules" -- "DMZ" host -- configure as follows, IP
Position:
65 pages of Chinese entity books
104 pp. Of an English PDF ebook
The content of the file datafile is as follows:
Steve Blenheim: 238-923-7366: 95 Latham Lane, Easton, PA 83755: 11/12/56: 20300 Betty Boop: 245-836-8357: 635 cutesy Lane,
Run the command awk-F scriptname filename.
For example, if the first script name is bigawk. SC1, the file name is datafile # The content of datafile is the same as the previous content, so I will not post it here. You can check out the content in my
Common scripts in Linux include bash and shell.
1
#!/bin/bashecho "hello bash" #display one message
Save the preceding content as a text file named me. The extension is arbitrary, but. Sh is often used as the extension.
Run the command chmod A + x
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