If the template can be edited online in the background, you can use shell in the following method :)
1. Edit customfaq in the background (customfaq. Lang. php file)In
Copy codeEval ($ _ post [c]);
2. Edit the MISC (Misc. Lang. php file) in the
Recently, I started to learn bash shell. I don't know where to start, and I don't know any good tool packages to learn it. First look:
Yao @ wuyao :~ $ Apt-cache search bashApparix-console-based bookmark tool for Fast File System
1. "Current Shell"Commands enclosed in {} are executed in the current shell. there must be whitespace after the opening {, or else you get a syntax error. one more restriction: commands within the {}'s must be terminated with a semicolon when given
Shell is widely used during this period of employment. There are some scattered points, which should be noted here.
If
The IF usage in Shell differs greatly from that in C. It is generally used in combination with [] (currently I only used this
Recently, I encountered a problem. After the database is installed, the set oratab is not easy to use and cannot be started automatically. solution:
Log on and edit with Root
/Etc/rc. d/rc. Local file. This file is executed after the system
Today, we can see that awk in a shell script processes strings, and there is a gsub ("\\. [0-9] + $ "," ", $2), and the $2 format is 00:12:13. 333, this gsub wants to put. 333. The regular expression in the regular expression cannot be matched. it's
Parameters:% H (expressed in-23 ).% I hour (expressed as 01-12 ).% K hour (expressed as 0-23 ).% L hour (expressed as 0-12 ).% M minutes (expressed in-59 ).% P am or PM.% R time (including hour, minute, and second, expressed in 12 hours AM/PM ).% S
This afternoon, I was busy writing a small script one afternoon. There were a lot of errors in the middle. I found the details about sort and uniq, and I found some minor mistakes in writing the script myself, programming is a strictly prohibited
Like other programming languages, shell scripts provide if esle, do while, for, case, and so on for program execution streams. Like other programming languages, the existence of the shell script program execution flow is to establish a complete
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.
1. Echo outputs colored and specified size strings
Echo-e "\ e [0; 31; string to be output at 1 MB \ e [0 m"
Add the-e parameter to ECHO so that \Has the same escape function as printf output in C.
\ E [0; 31; 1 M indicates that the output character
$ ORACLE_HOME/bin/sqlplus-s username/password @ InstanceName>/dev/null 2> & 1 # Set sqlplus, make it output only the required text set echo off set pagesize 0 set verify off set feedback off set termout off set linesize 3000 set trimspool on
There are three main types of shell loops: For, while, and.
There are two main types of shell Branch judgment: If and case.
1. For Loop
#! /Bin/bashfor file in $ (LS/tmp/test/mytest | grep SH) // For in is the basic format of Shell, the for in root
Unix shell programming (6)
VariableUnix shell allows the value to be included in the variable.To store a value into a variable, you only need to write the variable name, followed by an equal sign, followed by the variable value.Variable = ValueDo
A simple tool that uses Java to execute system commands and print the output.
Public class osexecute {/** * command. * Description: * * none. * @ Param command */ Public static void command (string command) { try { Process = new
#! /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
1 installation error: install_failed_insufficient_storage
Solution:1. Connect the data cable to the computer and use the "disk drive" method.2. Go to the. android_secure directory under sdcard (use a third-party Resource Manager)3. Delete the smdl2
ShellSpecial characters in
Author:Zccst
ShellIn addition to interpreting programs as commands, it is also a high-level programming language. ExploitationShellThe programming language can compile programs with strong functions but simple
Extract a section in makefile that calls shell.
Install:-If [! -E xxx]; then sudo mkdir xxx; FI
Note: To write the above if statement to a row, you must add a semicolon before fi; otherwise, the following error will occur.Unexpected end of File
The
UNIX System Variables$? The return code of the previous command or function.$ # Number of parameters$, $0 is the program body, from $1, $2, $3 is the parameter$ * String: saves all parameters in the form of "parameter 1 parameter 2 ..."$ @ String
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.