http://blog.csdn.net/xyz_lmn/article/details/7001892Android program memory is divided into 2 parts: native and Dalvik,dalvik are the Java heaps we normally call, the objects we create are assigned here, and bitmap are allocated directly on native,
First, the method of removing the empty lineSometimes when we process and view files, there are often many empty lines, in order to beauty or need, it is necessary to remove these lines, the method is as follows:1) using the TR commandCopy the Code
Huawei bids (do not want to spit) a variety of reasons can only use HBase shell query, in this record of their own exploration of the hbase shell to avoid the next time you have to findScan ' ogg_sel_ioc_sv_product_name_info ',{filter=>
1. Batch generation of random character filenamesUse the For loop to bulk create 10 HTML files in the/oldboy directory, where each file needs to contain 10 random lowercase characters plus a fixed string oldboy, with the following name
#本人新手写的不好之处, be sure to advise me. I will update this content on an irregular basis.1. Enter the IP address to find the domain name specified in the/etc/hosts file#!/bin/sh#author VPERSON#QQ 737304790#enter The specified IP to find the corresponding
1. create file. sh fileIn this example, the full name of the sh file is demo.sh, and the next step is to use the freely familiar editor editor command to2. Write the. sh
Scrapy shell command1.scrapy Shell URL #url指你所需要爬的网址2. Some URL data crawling needs user-agent,scrapy shell can directly add header files,Section ① MethodsScrapy shell-s user_agent= "mozilla/5.0 (Windows NT 6.1) applewebkit/537.36 (khtml, like Gecko)
Sometimes you need to simply deal with the file, with a few lines of shell script statements can be done, convenient, here to remember, while the next use. Combined with other people's blog and their own practice, but also the original
Open a text editor (you can use the Vi/vim command to create a file), a new file test.sh, the extension sh (sh for Shell), the extension does not affect the execution of the script, see the name is good, if you write Shell script in PHP, the
1. Create Shell script:/home/test.shcd/home/Vim tesh.sh #linux不区分后缀,. SH is only for user convenience;The first line of the test.sh file defines the format: #!/bin/bash indicates that the file is executed with the bash shell;Content to write
For loopfor var in list;Docommands, #使用变量 $varDoneExampleFor I in {A.. Z}; do actions; DoneLatterFor ((i=0;i{Commands}While conditionDoCommandsDoneUntil cycleExamplex=0;Until [$x-eq 9];DoLet x + +; echo $x;DoneIf comparison statementif
“#! Magic Number: The general specification at the beginning of the script, used to specify the interpreter to execute the contents of the script. Note: Only the first line of the script #! Valid, followed by a comment! If you do not specify an
0--stdin Standard input1--stdout Standard Output2--stderr standard Errorredirectecho "This was a good idea" > Temp.txtTemp.txt content will be emptied first before entering "this is a good idea"Additionalecho "This was a bad idea" >> temp.txtCat
$ $1-n The name of the current shell script the position variable $ #参数的数量 $* the value of all positional variables #? To determine whether the previous command succeeded, 0 for success, The non-0 is the failure---------------------------------------
Shell Application TipsThe shell is a command interpreter, a layer of interaction between the kernel and the kernel. There are many kinds of shells, the one with the prompt that belongs to /bin/bash, and almost all Linux Systems default to this shell.
From Wang Yin: the flaw of UnixI would like to explain my understanding of the nature of Unix philosophy through this article. While I point out a design problem with UNIX, the goal is not to attack the interest of UNIX. Although Unix has a very
Multiple values can be stored in an array. The Bash Shell supports only one-dimensional arrays (which do not support multidimensional arrays) and does not need to define the array size when initializing (similar to PHP).Like most programming
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.