/passwd file into uppercase characters after output; [email protected] tmp]# Head-n 6/etc/passwd | Tr ' A-Z ' A-Z ' root:x:0:0:root:/root:/bin/bashbin:x:1:1:bin:/bin:/sbin/nologindaemon:x:2:2:daemon:/sbin:/sbin/ nologinadm:x:3:4:adm:/var/adm:/sbin/nologinlp:x:4:7:lp:/var/spool/lpd:/sbin/nologinsync:x:5:0:sync:/sbin:/bin/ SYNCTee command: Overwrites the results of the previous command to a file in a pipeline[email protected] tmp]# Cat A.txt | Tee B.txt
descriptionFor statisticalCommand syntaxWC [parametric]Parameters-L: Count rows-M: Statistics of characters-W: Number of statistical wordsCase[Email protected]/]# cat/etc/passwd |wc-l-m-w19 29 883[Email protected]/]# cat/etc/passwd |WC19 29 883[Email protected]/]#PS: In fact, there is no need to add parametersUNIP Command Command descriptionUsed to delete duplicate rowsCommand syntaxXxxxx|unipParameters-C statistics Number of rows to repeatCase[Email protected] ~]# Uniq testb.txt111222111333[Em
This morning, I spent half a day and several hours in the afternoon. I finally got it done and decided to solve the pressing problem for everyone. If you have a better solution, please let me know. :)
1. Select to delete previous versions.Delete the WINNT \ system32 \ tee * 70 File2. Enable Delphi7CompileDelphi 2005: tee7d9. BPGDelphi 7: tee7d7. BPG
3. Install the DCl package
4. reinstall fastreportInstall fastreportModify the frxreg. inc file accordi
up all databases, delete all previous incremental logs and generate new logs:Mysqldump-h192.168.4.20-uusername-puserpswd -- single-transaction -- flush-logs -- master-data = 2 -- all-databases -- delete-master-logs> data_bck. SQLIncremental Backup:Perform a full backup and then update the log:Mysqladmin-h192.168.4.20-uusername-puserpswd flush-logs
3. copy the data directory directly.Stop the mysql service or lock the database table, copy the data directory to the backup location, start the mysq
cut : Intercepts a fieldSyntax: cut-d "separator character" [-CF] n here n is the number-D: followed by delimited characters, delimited by double quotation marks-C: followed by the first few characters-F: The next section is followed by the number of blocks-D followed by the delimiter character, where a colon is used as the split character, and-F 1 is the first paragraph, and the space between-F and 1 is optional.The-C can be either 1 digits n or an interval n1-n2, or multiple digits n1,n2,n3 So
You can use the Tee command If you want to save the output to a file and want to see the output on the screen.
Linux Tee Command detailedFunction Description: Read the standard input data, and output its contents as a file.Syntax: Tee [-ai][--help][--version][file ...]Supplemental NOTE: The tee instruction reads d
87
Uniq-c shows the number of repetitions per line:
[[email protected] ~]# sort 1.txt|uniq -c
2 3
1 4
1 5
1 6
1 7
1 8
1 87
六、tee
Six, Tee
The tee command takes the standard input, redirects it, and prints the standard input.
[[email protected] ~]# cat 1.txt|
Function Description: Reads the standard input data and outputs its contents to a file.Syntax: Tee [-ai][--help][--version][file ...]Note: The tee instruction reads data from a standard input device and outputs its contents to a standard output device while saving it as a file.Parameters-A or--append attaches to the back of the existing file rather than overwriting it.The interrupt signal is ignored by the-
Name: TeeLocation:/usr/bin/teePermissions: All UsersRole: Bidirectional redirection, the data stream will be sent with the file and the screen, and output to the screen is stdout, you can let the next command to continue processing.Usage: tee [OPTION] ... [FILE] ...Options:-A,--append append to the given FILEs, does not overwriteAdditionalbidirectional redirection, which can also be output to the screen after writing the file last.list. Last |
Tags: first global replacement tee output continuous Oldboy Test Screen # #TR Replace or delete characters -D Delete Character-C uses a complement of the first character set, which is the inverse-S retains the first character of a continuous character, removing other charactersView Test Files Tr.txt[email protected] tmp]# cat Tr.txtABC Oldboy FFFErhaitDfab DD ACRExample:1 The ABC in the file is converted to XYZ[[Email protected] tmp]# TR ' abc ' XYZ '
Function Description: Reads the standard input data and outputs its contents to a file.Syntax: Tee [-ai][--help][--version][file ...]Note: The tee instruction reads data from a standard input device and outputs its contents to a standard output device while saving it as a file.Parameters-A or--append attaches to the back of the existing file rather than overwriting it.The interrupt signal is ignored by the-
Function Description: Reads the standard input data and outputs its contents to a file.Syntax: Tee [-ai][--help][--version][file ...]Note: The tee instruction reads data from a standard input device and outputs its contents to a standard output device while saving it as a file.Parameters-A or--append attaches to the back of the existing file rather than overwriting it.The interrupt signal is ignored by the-
World111222111,22222Aa345222Aa456456[[Email protected] Document]# sort 2.txt |uniq-c1 1111 111,223 2221 3452 4562 AA1 Hello World
Tee_tr_split commandCommand TeeTee followed by the file name, its role is similar to redirect, the specific gravity of a function, the file is written to the following file and displayed on the screen, usually used for pipe characters | After.Options -a added meaning
[[Email protected] Document]# sort 2.txt |uniq-c |
I. Special symbols in the shellWhile you are learning Linux, you may have been exposed to a special symbol, such as "*", which is a wildcard symbol that represents 0 or more characters or numbers.Special characters that are commonly used:1, * represents 0 or more arbitrary characters.2,? Represents only one arbitrary character, whether it is a number or a letter, as long as it matches one.3, #这个符号在linux中表示注释说明的意思, that is, the content behind the # Linux ignored.4, \ de-ideographic characters, th
Sudo password-free and sudo Password
Sometimes we only need to execute a command with the root permission to su to the root, isn't it inconvenient? In this case, sudo can be used instead. By default, the new user is not in The sudo group. You need to edit the/etc/sudoers file to add the user. The file can only use the
Sudo sometimes appears to be unable to find the command, and clearly the path contains the command, which makes people wonder. In fact, the reason for this situation is mainly because when Sudo executes commands with administrative privileges, Linux resets the PATH environment variable, which is mainly due to system security considerations, but makes sudo search
Solve sudo: sorry, you must have a tty to run sudo a few days ago encountered a problem, calling another shell in one terminal is always unable to execute, and then caught the error message sudo: sorry, you must have a tty to run sudo. Later, I learned on the Internet that the solution is as follows: 1. edit/etc/sudoer
Some time ago, problems occurred when the newly installed centos was running the sudo command:
Sudo su: results-valid tive uid is not 0 is sudo installed setuid Root
This is a solution I found on a foreign forum.This another common problem for the new users for Linux. Anonymous change of permission of root or while experimenting we do run commands which results i
TeeIf you want to run a program or command in Linux, you can also display it on the screen while you are typing it into a file, you might consider using the tee command. For example, a directHere I call the function AAA to finish entering the results into the aaa.log.Parameters-A or--append attaches to the back of the existing file rather than overwriting it.The interrupt signal is ignored by the-i-i or--ignore-interrupts.--help online Help.--version
I. Pre-preparationSource code Download:
Use repo to download project source code
$repo init-u https://github.com/OP-TEE/manifest.git-m ${target}.xml [-B ${branch}]
$ repo Sync
We use target of Fvp.xml branch as MasterUse the following command to download the compiler:Note: The download path is not recommended for modification
Make Toolchains
The author uses this method to download an error occurs:
Fatal:the remote end hung up unexpectedly3 MiB | 279
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.