Shell Programming Advanced 1.3data Command

The date command is the command that displays the DateTimeDateFriday, January 01, 2016 15:05:01 CSTThe option to modify the time is-s" 2016-01-01 12:56:10 "View CalendarAa.Annual CalendarCal-yTime to synchronize the serverYum Install Ntp-yNtpdate

Shell Environment variables

Shell script implements Tomcat self-bootWhen a script is run on a machine, it can implement Tomcat self-boot,However, the script was added to the timed task, but the error was reported: Java.lang.UnsupportedClassVersionError.Cause of errorThis is

Shell concurrent multi-process simultaneous execution

1#!/bin/Bash2 3send_thread_num= -#设置进程数. 4tmp_fifofile="/tmp/$$.fifo"# The current process ID number that the script runs as the file name5 Mkfifo "$tmp _fifofile"# Create a new random FIFO pipeline file6Exec6<>"$tmp _fifofile"# Definition File

Shell--awk

1. awk command format: awk [Options] File name Options -F FS: Specify delimiter for split data -F File: Specifies the program's script file Example: awk-f: ' {print '} '/etc/passwd Awk–f script/etc/passwd Script: Represents

Shell installation Tomcat (three)

#!/bin/bash#bu lctomcatdir=/home/tomcattomcattar= $TOMCATDIR/apache-tomcat-7.0.65.tar.gzjavadir=/usr/ javajdkdir= $JAVADIR/jdk1.8.0_65jdktar= $JDKDIR/jdk-8u65-linux-x64.tar.gz### #8080 # # # # #T8080DIR = $TOMCATDIR/ tomcat-reststart8080= $T 8080dir/

Shell script-Read configuration file

Demand Sometimes in the shell script needs some execution, if placed in the program is not easy to unified management, and every time you modify the path to the script inside to change the trouble, so the unified path in the configuration file

Shell script to GG

==================================================#!/bin/bashsqlplus=sqlplus64username=$1psswd=$2filedir=$3[[$ Filedir] | | Filedir= "/sandbox/edf_api_repo_dir" [[-D $filedir]] | | {echo "mkdir $filedir"; mkdir $filedir; chmod 777 $filedir;} [-D

2. Shell's shell configuration file

1. Location of shell configuration files The most commonly used shells are SH and bash, which only speak sh and bash here. 1.1. SH (Bourne Shell) configuration file has two main, respectively, each user home directory

Shell monitoring Tomcat (three) port is normal

#!/bin/bash#by lc#protnum= ' netstat-lntup|grep java |wc-l ' [email Protected]tomcat_prot () {if [' Netstat-lntup|grep Java |wc-l '-ne 9]then clear Echo-e "\033[31m############################################\033[0m" Echo-e "\033 [31m#\033[0m "" \033

Lao Li share: "Linux shell Script Raiders" essentials (eight)

1. Printing process [[email protected] program_test]# PS-E | HeadPID TTY Time CMD1? 00:00:03 Init2? 00:00:00 Kthreadd5 y 00:00:00 migration/06} 00:00:00 ksoftirqd/03 y 00:00:00 migration/04} 00:00:00 watchdog/07? 00:00:00 events/08? 00:00:00 Cgroup9?

Linux Rman Shell

# make direcory for backset file and scripts file,in my Case/backup/db_bakCd/backup/db_bakmkdir Scripts Logs Rman# The following is contents of Rman_backup_shVi/backup/db_bak/scripts/rman_backup_sh#!/bin/bash# author:anbob.com# Desc:rman Backup

Linux Shell Script Raiders 001

Shell scripts are usually text files that start with #!/bin/bash. #! is placed before the interpreter path.Use bash as the interpreter to interpret all command-line commands.There are two ways to run a script, one is to use the script as a

Shell handles files that contain spaces in the file name

Recently learning Gradle, using the git clone command to download some information, but the file name contains a space, it does not seem very comfortable, so think of using shell script to batch it, remove the file name of the space, note that this

Lao Li share: "Linux shell Script Raiders" Essentials (ii)

Poptest is the only training institute for developing Test and development engineers in China, aiming at the ability of the trainees to be competent in automated testing, performance testing and testing tools development. If you are interested in

Shell Primer-grep Filter-1

The regular expression is a string. There is a certain pattern. We use the specified string to match a specified line. The specified string is the regular expression.Regular expressions have these tools: grep egrep sed awkCommand: GerepDescription:

Shell Script Programming Basics

1. Create shell script file     Create file, add executable permission to file chmod +x file    format: Specify the shell        #! in the first line of the file /bin/bash    NOTES: #开头的命令 (except  #!/bin/bash  in the first line)     Display message:

Traverse the file and format the output file (Shell script implementation)

Background1. In project development, it is urgent to generate files in the following three formats according to the files under the resource path Res.Format one:#define IDR_CEF_0001 101#define IDR_CEF_0002 102...#define IDR_CEF_0122

Shell Line Script

Each time on-line, first put the intranet code with Xhell to local. Then drag it to the online server.Dragged and dragged, too slow. So I wrote an online script.Wrote a few versions, this is the final versionscp_v3.shThe contents are as

Linux Shell programming [essence]

0. Internal variables in the shell:1. $?: Represents the return value of the shell command.2. $$: Represents the PID of the current shell.3. $!: The last PID value to be put into the background job.4. $ A: Indicates the name of the script.5. $1--$9,$

A simple shell.

Recently, follow the MIT operating system engineering Course (6.828/fall 2014) to write a simple operating system from scratch.Job 1 of the first lesson is to write a simple shell that can run the command and Support redirection (' > ', ' The source

Total Pages: 541 1 .... 384 385 386 387 388 .... 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.