8 hours reference
Terms
Reference: The selected text is enclosed by some type of reference tag, so that the selected text becomes a text character.
Escape: escape a character means that a backslash (/) is added before the character to escape
we know that variables are inherited by quilt processes, it can be used directly. In some cases, you may need to inherit functions to facilitate transparent use. The method is very simple. Use "Export-F". Pay attention to the parameter "-F", which
Execute the SQL statement of the Oracle database in Shell
#### Function #### Description: Execute an SQL statement ### input parameters: {SQL statement} {database TNS} {database user name} {Database User Password} #### output parameters: SQL
Beijing, March 16 (Xinhua)-the safety shell of nuclear reactors 1 and 3 at Fukushima 1st nuclear power plant may be damaged, Kyodo News reported, japan may need assistance from the US military.
Yoy Nakano said Japan may seek help from the US
I have never been familiar with Shell and used to write command> log. log 2> & 1 when reporting error logs.Today, a colleague read my shell script and asked me what I meant by 2> & 1, which really gave me a hard time.After Google, I have a rough
I just learned shell and encountered a problem. The total error occurred during execution: Unexpected
Operator. I used Ubuntu 9. 04. I learned from laruence to go to the shell script section,
The script is as follows:
#! /Bin/bash
# Program:
#
The following are all from network collection. I sorted it out myself and only sorted out some things that I was not familiar with before, but will be used now:I. Definition of variables in makefile:1. recursive expansion: the variables defined by
Reprinted: http://www.360doc.com/content/10/0303/16/155970_17438894.shtml
Example 4-2. Simple variable assignment
1 #! /Bin/bash 2 # "naked" variable 3 4 Echo 5 6 # When is the variable "naked", such as when the front side is less than $? 7
Suppose I want to run a script with parameters. After running the script, the screen displays the following data:
What is the program file name?
How many parameters are there?
If the number of parameters is smaller than 2, the user is notified
Write shell code
The following is a shell C program shellcode. C: (this article takes Linux on intelx86 as an example)
Void main (){Char * name [2];
Name [0] = "/bin/sh ";Name [1] = NULL;Execve (name [0], name, null );}
Compile it as the Execution
A wonderful article on arstechnicaCommentThe replacement of cmd.exe under Windows is described in detail. Microsoft command shell, also known as MSH, and the project code is monad. From the comments, mshdoesn't just make cmd.exe unable to look
1. query all files with no Suffix in the current directory:
Find.-Type F-and! -Name "*.*"
2. query all files in the current folder that use the Windows Line Break (CRLF) and have no suffix. Use the-M parameter to convert them to Unix format (LF ).
Let's start with an example:
x=1+1echo $x
Are you expecting output 2? Let you down. The output result is 1 + 1. Why? This is because the variable type in shell script is "string" by default, so if the variable type is not specified, 1 + 1 is a
At noon yesterday, after finishing learning ACL and mounting, I tried to write a small script. Suppose a group develops a project and needs to create a project group with three users and a shared folder, to prevent mutual modification or even
Awk origin: awk statements are a set of languages developed by three researchers at Bell Labs in 1970s. awk names are the names and letters of the three researchers. However, awk was initially not intended for users, but for individual users.
Write a script to create and manage LV:Note: During script execution, a menu is displayed to the user, as shown in the following figure:A create an LV.B create an LV in an existing VG.C extend an LV.D reduce an LV.
If you select item A, the
Victor, a friend of the district, told him that he planned to switch to the cygwin version of Emacs. In order to integrate the bash environment when he developed MTK more conveniently.
I also Google cygwin Emacs and other topics here ..
The
#! /Bin/shlang = zh_cnsendmsgfile =/home/LSC/fetion/install/cmd.txt send_sms_mobile_telephone () {log_time = 'cat ftpstat_time 'local_time = 'date + % s' n =n ($ {local_time}-$ {log_time })) if ["$ N"-GT "1800"]; then # is more than 30 minutes away
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service