Each script has its own expertise.There is a time to achieve a work, the use of Shell,php,python look at the file type, inconvenient handover, looking also more trouble .It is also necessary to reduce the number of file types.Scenario encountered:
In the shell command terminal. CTRL + N is equivalent to the direction down direction key, ctrl+p equivalent to the direction upward direction key.In the command terminal through them or the direction of the key to achieve a high-speed search
Because I've been working on some JSON data formats recently, I finally found JQ this great tool after a search. JQ allows you to manipulate JSON directly under the command line, including slicing, filtering, converting, and so on.Let's use a few
When writing a shell program, you often need to handle command-line arguments, and this article describes the command-line approach under bash.Options and Parameters:Like the following command line:
Copy Code code as follows:
CTRLKey bound_____________CTRL +-Jump to the start of the lineCTRL + B-Move back a charCTRL + c-Terminate the commandCTRL + d-Delete from under the cursorCTRL + E-Jump to the end of the lineCTRL + F-Move forward a charCTRL + k-Delete to EOLCTRL +
Http://www.hickwu.com /? P = 264
C-l clear screen and clear command
C-a move the cursor to the beginning of the lineC-e move the cursor to the end of the row
Delete one character from C-HC-d deletes one character from the forwardC-B move one
In the shell command terminal, CTRL + N equals the direction-down direction key, ctrl+p the direction key that corresponds to the direction. in the command terminal through them or the arrow keys can be used to quickly find the history command.
When you need a simple calculation, you do not want to use the GUI calculator, can be directly calculated under the shell is the bestChecked, there is a thing called BC, the specific use will not repeat, you can run BC, and then go into the
Using the WC command to count the file lines, the number of words, the number of characters, using sort sorting and de-weight, combined with uniq can be the word frequency statistics.Cat File.txtsort hello.c | uniq-c | Sort-nr |head-5Use cat
1. Manually parse parameters, position parameters(1) $#: Number of parameters(2) $1...$9: first parameter ... 9th parameter2. Built-in command parsing, getopts, long parameter format not supportedCommand format: getopts option_string variableThe
A shell script, what is its command parameter?First, shell scripting and scripting like Python can use parameters as well;Secondly, the shell parameters are divided into positional parameters and internal parameters;Where, positional parameter: is
Original
To blur a lookup, you can write this. But Row_key can only be technical to the right of the query.
such as: row_1000, row_1001,row_1002,row_1003,row_1004,row_1005,row_1000,row_10006,
Scan followed by table name
Scan ' table ', {LIMIT = = 100
Because of the recent processing of some JSON data format, the early morning after a search, finally found the JQ this great tool. JQ allows you to manipulate JSON directly at the command line, including sharding, filtering, transformations, and so
It is customary to use the Linux command line to manage Linux systems, for example:
Copy Code code as follows:
$ date
211 01:34:58 CST 1999
$
When the user logs in, it actually goes into the shell, and it follows a certain
This article describes the use of command-line options and command-line arguments in a Linux shell, and in bash, you can use the following three ways to handle commands
Row parameters, each of which has its own application scenario
Question
The development Environment (software development environment) refers to the set of software that is used to support the engineering development and maintenance of system software and application software, which is referred to as SDE, on the basis
########################
Summary of several special shell variables:
########################
######################################## ####################
#
# Http://hi.baidu.com/xece/modify/blog/75327e382149dae23b87ce5a
##########################
I. hive has three modes: cli, hwi, and hiveserver; cli: shell command line hwi: Access hiveserver through a browser: that is, the JDBCODBC interface, where hwi is not used to learn hive: sishuok.comforumblogPostlist6220.html (hive is a beginner, and
Since MySQL was acquired by Oracle, PostgreSQL has gradually become the first choice for Open Source relational databases.This article introduces the installation and basic usage of PostgreSQL for the first time users. The following content is based
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.