[Basic]Man: Show Command documentInfo: Online Document/usr/share/docprintf: Formatting the display of dataEcho: Display a line of text[Date Time]Date: Display and set dates and times[+format]: In what format to display the dateHwclock: Querying and
Directory/File ManagementDirectory Management:1.ls2.cd3.pwd4.tree: Viewing the directory tree5.mkdir: Create an empty directory-P: Create parent Directory-V: Show the process of creationCommand line expansion:Mkdir-pv/mnt/test/{x/m,y} # creates two
Directory/File Management Directory Management:1.ls2.cd3.pwd4.tree: Viewing the directory tree5.mkdir: Create an empty directory-P: Create parent Directory-V: Show the process of creation Command line expansion:Mkdir-pv/mnt/test/{x/m,y} #
As we all know, in Linux under the "All documents" principle, all the configuration files can be edited and stored in the form of text. Therefore, the ability to manipulate text files determines whether you can responds very well under Linux. Today,
1 built-in variables (built-in) commonly usedFS input field delimiter default whitespace changed by option-F or re-assigned FSOFS output field delimiter default space, change can be re-assigned valueThe filewidths is separated by spaces Iade defines
awk is a command under Linux, his output of the other commands, the processing of the file is very powerful, in fact, he is more like a programming language, he can customize variables, conditional statements, there are loops, there are arrays,
The contents of the system work include : File ManagementFile creation and deletion:# Touch file name (modify file stat)# Stat file name (access,modify,change) # File File name (view file content type)Text Editor:nano[L]ASCII(one byte
Method-: Using bcp command
bcp utility
The bcp utility microsoft®sql the data in a user-specified format between the server™2000 instance and the data file.
Grammar
bcp {[[database_name.][owner].]{table_name | view_name} | "query"} {in | out |
awk Learning NotesRecently added a few features of the log, but, this log is the output, general himself also found not the problem, so want to write some simple monitoring script to see the general situation of the log,For example, there is no
1. IntroductionAwk is a powerful text analysis tool, with the search for grep and the editing of SED, which is especially powerful when it comes to analyzing data and generating reports.To put it simply, awk reads the file line-by-row, by default
One, built-in variable table
Property
Description
$
Current record (as a single variable)
$1~ $n
Nth field in the current record, separated by FS
Fs
The input field delimiter is by
In this section of the Awk series, we'll see one of the most important features of awk, field editing.
First, we need to know that AWK can automatically separate the lines entered into several fields. Each field is a set of characters that are
Awk is a very powerful text analysis tool in Linux. In a nutshell, awk reads the file line by row, dividing each row into separate sections with whitespace as the default separator, and then doing a variety of analytical processing.
Basic usage of
Server
bcp utility
The bcp utility replicates data in a user-specified format between the Microsoft®sql server™2000 instance and the data file.
Grammar
BCP {[database_name.] [owner].] {table_name | view_name} | "Query"}
{in | out | queryout |
Cut commandUseWrites out the selected bytes, characters, or fields from each line of the file.GrammarCut {
-B List [-n] | -C List | -F List [-S] [-D Character]} [File ...]DescribeThe cut command cuts bytes, characters, and fields from each line of
PostgreSQL provides a copy command for the mutual copy between the table and the file (and standard output, standard input), copy to the table to the file, and copy from the file to the table.Example 1. Copy the entire table to standard outputTest=
Awk is a powerful text analysis tool, with the search for grep and the editing of SED, which is especially powerful when it comes to analyzing data and generating reports. To put it simply, awk reads the file line-by-row, using spaces as the default
The line terminator for Linux is: [$]The line terminator for Windows is: [$+ carriage return]Directory Management:LS, CD, pwd, mkdir, rmdir, treeFile Management:Touch, stat, file, RM, CP, MV, NanoDate Time:Date, clock, Hwclock, CalTo view text:Cat,
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.