the selected row
S
Replace another string with one string
Replace flag:
G
Global substitution within a row
P
Print Line
W
Writing rows to a file
X
Swapping the contents of a staging buffer and pattern space
Y
Convert a character to another character
Examples of sed:Print: P command
Sed '/abc/p ' f
cross-river scheme can be as follows:Typedef char Solution; Solution sln [5];The above is actually an alias Solution for the type char, and then the Solution is used to define the sln to better reflect the semantics to increase the readability of the Code. In the previous article, the number of people on both sides of the Strait is mapped to char [4]. To enhance the semantics, you can:Typedef char PersonLayout [4]; PersonLayout oldLayout [2, 200];Note that the above is typedef char PersonLayout
to er, that is, lovablelover.
The characters X {m}, X {M,}, and X {m, n} repeat: m times, at least m times, at least m times, not more than N timesO {5, 10} matches 5 ~ 10 o strings
| OrEcho "Tom and Jerry" | sed-r's/(Tom) and (Jerry)/\ 2 and \ 1 /'Echo "Tom G1, G2, G3 Jerry" | cut-d ""-F2Echo "ABC Def" | sed-r's/([A-Z] +) ([A-Z] +)/\ 2 \ 1 /'Echo "ABC Def" | sed-r's/([a-Z0-9] +) ([a-Z0-9] +)/\ 2 \ 1 /'E
corresponding basic data types are wrapped up class.These classes of data all exist in the heap,Java uses the new () statement to tell the compiler that it is dynamically created as needed at run time, so it is more flexible, but the disadvantage is that it takes more time.4.string is a special wrapper class data。 That is, you can use string str = new String ("abc"); In the form of string str = "abc" (In c
array, If you want to turn an int into an integer object, first go to the cache, find the words to return the reference directly to you, no need to new one, if not -128-integercache.high (127) Returns an integer object that is new.Result 3: Since 3 is within range so the data is taken from the cache, and C and D point to the same object, the result is true;Result 4: Because 321 is not in the range so the data is not taken from the cache but there is a new object alone, E and F do not point to t
, first go to the cache, find the words to return the reference directly to you, no need to new one, if not -128-integercache.high (127) Returns an integer object that is new.Result 3: Since 3 is within range so the data is taken from the cache, and C and D point to the same object, the result is true;Result 4: Because 321 is not in the range so the data is not taken from the cache but there is a new object alone, E and F do not point to the same object, the result is false;4. String is a specia
, first go to the cache, find the words to return the reference directly to you, no need to new one, if not -128-integercache.high (127) Returns an integer object that is New.Result 3: since 3 is within range so the data is taken from the cache, and C and D point to the same object, the result is true;Result 4: because 321 is not in the range so the data is not taken from the cache but there is a new object alone, E and F do not point to the same object, the result is false;4. String is a specia
into an integer object, first go to the cache, find the words to return the reference directly to you, no need to new one, if not -128-integercache.high (127) Returns an integer object that is new.Result 3: Since 3 is within range so the data is taken from the cache, and C and D point to the same object, the result is true;Result 4: Because 321 is not in the range so the data is not taken from the cache but there is a new object alone, E and F do not point to the same object, the result is fals
, first go to the cache, find the words to return the reference directly to you, no need to new one, if not -128-integercache.high (127) Returns an integer object that is new.Result 3: Since 3 is within range so the data is taken from the cache, and C and D point to the same object, the result is true;Result 4: Because 321 is not in the range so the data is not taken from the cache but there is a new object alone, E and F do not point to the same object, the result is false;4. String is a specia
above defines a ing element -- the first variable ABC: a, the type is long ABC:; and declares a ing element -- the second function ABC: AB, the type is void (ABC:) (long ). The Type modifier ABC: modifies the ABC: AB function her
(mapped by parameter names) used to transmit necessary information to the code at the address corresponding to the function name for corresponding functions. Declare a function as follows:Long * ABC (long *, long , long [10], long (*) [10]);The above declares a function ABC, whose type is long * (long *, long , long [10], long (*) [10]). indicates the code starting from the corresponding address of the fun
Well-known theorem in ry (not sure all are correct, but some errors have been found and corrected)1. Pythagorean Theorem)2. Projection Theorem (Euclidean theorem)3. The three midline of the triangle is handed over to a point, and each midline is divided into two parts by this point: 2: 1.4. The link between the two diagonal centers of the Center on both sides of the quadrilateral is placed at one point.5. The center of the two triangles made by the center of the side connecting the hexagonal edg
Rights ManagementRWXThree types of usersU ownerG-Genus Groupo Other usersChange permissions for three categories of usersChown Change file owner (only administrators can use this command)#chown USERNAME File,....Example #tail/etc/passwd (Find a user)#ls/tmp-l (look at the files under the user)#chown [user name]/tmp/abc (change owner)Demo Step: #cd/tmp (CD to TMP)#touch ABC (set up file
difficult to grasp as long as you understand the characters in single and double quotes
Copy Code code as follows:
Igi@gentoo ~ $ echo "abc\" abc "
ABC "ABC"
Igi@gentoo ~ $ echo "abc\ ' abc"
Literal constructor for Ruby regular expression:
//Try this:
>>//.class=> RegexpPattern matching consists of two parts, a regular expression (regexp), and a string. A regular expression predicts a string that either satisfies the prediction or is not satisfied.
See if the match can be matched using the match method. Do an experiment:
>> puts "Match!" "If/abc/.match (" The alphabet starts with ABC. ")The
be found that it is the same as the previous label definition format, but is not a statement modifier, that is, you can struct abc{private:}; There is no need to be in private: Follow the statement because it is not a statement modifier. Starting from it, until the next such syntax, all declarations and definitions between the member variables or member functions have the semantics it represents. For example, the above class Radiogram, where the radi
Java decompress zip-multiple files (including folders)
Compress multiple files and folders to decompress complicated file directories.
The compression method uses variable parameters. one or more files can be compressed. Arrays can be written or written to the parameter list one by one...
[Java]ZipFiles (zip, "abc", new File ("d:/English"), new File ("d:/release data .xls "));
Test file directory structure:
Compressed Content: English folder and two
Java extract zip-Multiple files (including folders), as follows:
Compress multiple files and folders to extract complex file directories.
The compression method uses a variable parameter that compresses 1 to many files ... Can write an array of ways or write to the parameter list ...
Zipfiles (Zip, "abc", New File ("D:/english"), New File ("d:/release data. xls"));
Test file directory Structure:
Compressed content of the test: Chines
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.