Linux timed execution shell script _crontab

1. View tasks [[email protected] oraclebacka]$ crontab-l2. New task [[email protected] oraclebacka]$ CRONTAB-E3, 14 points per day 40 execute/backup/oraclebacka/sh.sh script, log output to/backup/oraclebacka/shlog.txt* * * */backup/oraclebacka/sh.sh

Common shell commands

1. SearchGREP-LR YHB./Indicates that all files in the current directory, including sub-files, are searched for the YHB character, and the file name is printed. If there is no-l, the searched rows will be printed out.2. Display the number of rowsNL

Shell First lesson study notes

Shell First lesson study notes What do you mean shell?The shell is a command interpreter that, at the outermost layer of the operating system, is responsible for directly talking to the user, explaining the commands entered by the user to

Shell IFS readline.sh

Processline () {line= "[email protected]" echo $line} file= "" if ["] = = =" "]; Then file= "/dev/stdin" Else file= "$" if [!-f $FILE]; then echo "$FILE: does not exists" exit 1 elif [!-R $FILE]; Then Echo '

Syntax knowledge for shell scripts 1

How to use the ①$ notation: (Excerpt from-network)The execution name of this program$n the nth parameter value of this program, n=1..9$* all parameters of this program, this option can have more than 9 parameters.$# the number of parameters for this

Shell Scripting Learning

Stream Editor Simple usage of SED sed[options] sed cmds files Option –e Connect multiple Edit commands -f Specifies the SED script file name -N prevents input lines from being entered automatically Sed ' 4, $d ' test.in the first 4 lines of the

Shell script configuration nginx configuration file syntax highlighting

#!/bin/bash# the script is used to configure the Nginx profile syntax highlighting # I've put Nginx.vim on my server. 172.16.0.1, you can go to the official website to download echo ' Get Nginx.vimbye ' | Lftp

Conditional judgment in Shell

IfIn the-ZTo-DThe meaning2011-09-05 10:30[-A FILE]IfFILEThe existence is true.[-B FILE]IfFILEExists and is a block special file is true.[-C FILE]IfFILEexists and is a word special file is true.[-D FILE]IfFILEexists and is a directory is true.[-E

Shell Filters Specific Content

Filter email and website address in fileFilter mailboxes (only filter text is displayed):#egrep-O ' [a-za-z0-9.] [Email protected] [A-za-z0-9.] +\. [A-za-z] {2,3} ' file.txt[Email protected][Email protected]Filter website Address:#egrep-O '

Location parameters of Linux shell programming

The positional parameter is a special variant of the shell that is used to pass parameters to the program when running the shell.$ A indicates the name of the script;$ $ represents the first argument, the sum is the second argument, and so on, when

Some shell commands that you learn and save yourself

Absrtact: In the process of learning, inevitably encounter some commands, the kind of need, but you do not have command. In order to save time, worry about forgetting these, special Open this essay, at any time to record some of the commands used.

Shell Script Note 1

Finding mathematical expressionsVALUE=$[6/3]value=$ ((6/3))Let "value + = 1"Defining local VariablesLocal valuedefining integersDeclare-i valueCommand substitutionValue= ' Command 'value=$ (command)System variables$n, nth parameter$#, number of

Shell Scripting Learning (ii)

Linux-bash types of editing languages for script editingInterpreted language (Bash Python perl)definition: Use the interpreter to read the code we write and convert it into system-related commands. Executive advantage: It's easy to deal with objects

We need to know a little shell script.

Most of the time you don't have to write your own, but see if you can read it together and see an example of less than 10 lines.#!bin/bashgetcontent () {if [!-e $]; then return 1;fi content= ' cat $ ' echo ${content//root/h2do}}getcontent/etc/h

2>&1 Meaning of Shell programming

http://blog.csdn.net/gyanp/article/details/7258356It is often possible to find the following form of command invocation in some scripts, especially when Crontab calls/tmp/test.sh >/tmp/test.log 2>&1The first half of/tmp/test.sh >/tmp/test.log is

What is a shell?

A lot of content is easy to confuse, so it's better to sort out some concepts here.Shell is shell, meaning is a shell outside the operating system kernel, used to interact with the user, which is more commonly used on the server, so do not use the

Shell string and array summary

Blog home: http://blog.csdn.net/minna_d1. Calculate the string length:echo ${#str}2. Truncate the string by character:${word:begin:length}3. With%, percent, #, # #对字符串的切割:%: Right-to-left non-greedy matchPercent: greedy match from right to left#: No

Very powerful shell to write Russian square, shell Russian square

Very powerful shell to write Russian square, shell Russian square On the Internet, you can see a Russian box written using linux shell scripts. It is the most awesome shell I have ever written. Share. The original author information is included in

Replace the tomcat cluster war package with Shell scripts.

Replace the tomcat cluster war package with Shell scripts. Run the command to log on to the server without ssh. The configuration file does not change much to overwrite the previous configuration. Profile configuration file Bak =/home/wsm/bakWebapps

Shell loop, shellloop

Shell loop, shellloop1. LoopThe shell loop continues to execute a program until it meets the conditions. There are four types of loops: while LOOP, until loop, for fixed processing, and for numerical processing.2. while LoopThe while loop is

Total Pages: 541 1 .... 498 499 500 501 502 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.