A few simple shell scripts to draw

md5

First timed crawl server JVM related information #! /bin/sh #get_current_time export java_home=/opt/jdk1.6.0_10/ export path= $JAVA _home/bin: $PATH Export classpath=.: $JAVA _home/lib/tools.jar: $JAVA _home/lib/dt.jar: $CLASSPATH date= '

A fun Linux shell script __linux

A fun Linux shell script, the basic idea is to loop the call Cowsay The effect is as follows ------------------------------------------------------------------------Gorgeous split Line------------------------------------------ -----------------------

"Shell script Learning" $* and $@

Both $* and $@ variables provide fast access to all parameters, both of which can store all command-line arguments in a single variable. The $* variable saves all parameters provided on the command line as a single word and is treated as a single

The execution of the Linux shell script __linux

(1) how the shell executes a commandLinux commands fall into two categories: one is the shell's built-in command, and the other is a shell-independent command. Don't forget, the shell is only a program in the system, when it executes a non-built-in

The \ r character in the shell script.

On Windows with notepadd++ edit a shell script, die or die, back to Linux, edit, or have this \ r, search the next, is this: http://bluemood.blog.51cto.com/1142811/1030925 ‘ because the shell processed the character file in Windows, the string

Shell's PS command parameter list explanation

Usage:ps [Options] Basic options:-A,-e all processes-a all with TTY, except Sessio N leaders a all with TTY, including and users-d all except session leaders-n, --deselect Negate selection R only running processes T all processes on this Terminal

What does a double colon mean in a shell script?

This is the code development style, in fact, is a function name, equivalent to the underscore division, but read into the package name after the meaning of different. This is defined in accordance with Google's shell development

Shell Date Command Get time--rich and colorful

The simplest output:# datewed June 6 : £20181. Gets the current time, output in the specified format: # date +%y-%m-%d standard output date (where: + must be,-optional, can also be output according to the specified style, for example:/,* 2018 -06 -

Linux Bash shell string split substring etc (RPM)

Original 52779364The problem with script development is that the string splitting operation in the original Java (substring indexof, etc.) does not know what to do (e.g./a/b/c/d.txt I want to know the name of the file)Query information that the

How to write a simple shell script.

The shell itself is a program written in C, which is a bridge for users to use Linux. The shell is both a command language and a programming language. As a command language, it interprets and executes user-entered commands interactively, and as a

Shell Script Basics

Programming Basics:Program: Instruction + dataProgram Programming Style:Program: command-centric, data-serving instructionObject type: Data-centric, instruction serves dataShell Program: Provides the programming capability to interpret the execution.

Lab Four Shell programming (2)

First, the experimental stepsBasic usage of 1.shell variables and usage of common symbols(1) Change the main prompt to the user's home directory nameExport ps= $HOME(2) Assign the string DOS file c:>\ $student \* to the variable x and display it(3)

Shell Scripting Learning

Startup script start.sh This script is used to start the project, log logs and PID#!/bin/shprg=" $" #$ A represents the current startup script # Get the true path of the file while[-H"$PRG"]; Dols= ' Ls-ld"$PRG"' link= ' Expr"$ls": ' .*-> \ (. *\) $"

Shell Programming Awk Advanced

awk operatorArithmetic operators: x+y, X-y, x*y, x/y, X^y, x%y-x: Convert to negative +x: convert to NumericString operator: unsigned operator, string connectionAssignment operators: =, + =,-=, *=,/=,%=, ^= + +,--Comparison operators: = =,! =,;, >=,

Shell scripts from getting started to complex three (passing parameters)

when executing a Shell script, parameters can be passed to the script, and the format of the parameters obtained in the script is: $n. n represents a number, 1 is the first argument to execute the script, and 2 is the second parameter that executes

Daily Shell Exercises (05)--Batch package files

1. ExercisesFind all files with the suffix. txt in the/123 directory Bulk Modify. txt to. txt.bak Package all. bak files into 123.tar.gz The name of the batch restore file, that is, to remove the added. Bak again 2. Exercise

Shell implementation of war package configuration updates and automatic publishing

This script is primarily used to manually publish war packages for non-MAVEN tomcat projects,1. Upload the Test war package to the specified directory2, back up the current production code3. Automatic configuration file replacement4, the release of

New Peanut Shell +tomcat released Javaweb project "pro-Test effective"

First, new peanut Shell 1.0On the Peanut Shell official website (http://www.oray.com) Download "New Peanut Shell 1.0" installation software, software installation completed, need to register, after the successful registration of Peanut Shell website

Shell string array

Array Declaration ArrayDeclare-a Array_NameDeclare-a array_name: Associative arrayNote: The two cannot be converted to each otherArray name and subscript (index)Index: Numbering starting from 0, which is a numeric indexNote: Indexes can support the

About a shell script written under Windows does not run on Linux error issues

First of all, the shell script you wrote must be correct,Second, the reason for the inability to run: because the line break under Windows is two bytes, and you upload the Linux,linux under the line is two bytes, so the compilation of the wine is

Total Pages: 541 1 .... 237 238 239 240 241 .... 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.