Knowledge about shell scripts

1. Exec Read lineRushid = $ lineExec is a pipeline command, which is generally not used separately.Read from the CSV file and assign each line to lineRead is used to accept keyboard input in shell. Line is a variable that accepts output parameters.

BASH Shell Script Programming

/*************************************** ******************************* Author: Samson* Date: 08/01/2013 **************************************** ****************************/ BASH Shell script programming learning summary: Variable:(1)

Understand shell:>/dev/null 2> & 1

From: http://xierongzhong1.blog.163.com/blog/static/5232328620102921658692/   Shell may often see:>/dev/null 2> & 1   Command results can be defined in the form of %>   /Dev/null indicates an empty device file.   > Indicates the

Linux bulk modification of file suffix shell script

I wrote a shell script to modify the suffix and learned it with everyone.Below isSource code: The copy storage is myrename. Sh, which can be used in full accordance with the instructions.Here, I would like to remind beginners that single quotation

Django-based control (running of Web Server shell scripts) Guide

Django-based control (running of Web Server shell scripts) Guide   "http://www.w3.org/TR/html4/loose.dtd"> pop up function closeit () { setTimeout ("self. close () ", 10000 )//.. } // --> after 10 second, this page will be

Shell script learning tutorial-Memorandum

1. Preface This is a series of learning documents. Based on the spirit of Internet sharing, it mainly comes from the shell area on the Forum. It has been organized and is the content of a book. Therefore, copyright belongs to the original author

Shell environment and variable survival learned from the Export command

Creation: 00:49:46Author: unlinuxFrom: http://www.Unlinux.com MeI am a newbie myself. I haven't been in touch with Linux for a long time. Recently I encountered a problem when I learned the bash Export command (the book says that export is changing

Linux Shell sed (append text)

Stream editor is a text processing tool that can process all editing tasks at a time. Instead of directly modifying the file, it copies the text content to the buffer zone and then edits the content it operates on to the buffer zone. If you want to

Number of lines in the shell string

1. query the row number of the string. Grep-n "XXX" str.txt #-N print the prefix of the number of lines where the character "XXX" is located in the file "stringstr.txt" Example: Str.txt XxxYyyZzzXxx Enter the SEARCH Command: grep-n "XXX"

Special characters in Linux Shell

Special characters in Linux Shell 1. braces: Usage 1: wildcard Extension Eg: ls my _ {finger, toe} s This command is equivalent to a combination of the following commands: Ls my_fingers my_toes For example: mkdir {usera, userb, userc}-{home, bin,

Experiment 1 implements a simple shell with Parameters

Experiment 1 implements a simple shell with Parameters   1. Experiment Name, experiment number, and specific name In experiment 1, a simple shell with parameters is implemented based on the framework of 1-5 on the 9th page of the textbook, and a

Privilege Escalation for Linux common users: Root (full version) Shell version first !!!

1. Create a test account in the Linux directory2. Download a script in http://milw0rm.com/exploits/84783. view the udev PID Method 1: first CAT/proc/NET/NetlinkFfff810077587400 15 364 ffffffff 0 0 0000000000000000 2Ffff810037f810001000 16 0 00000000

Practical shell command memo

Opening Remarks: here we will record some common bash commands, for example, memo and hope to help others solve some problems. 1. Check whether the file exists if [ -f ./foo.txt ]then echo the file existsfi 2. Check whether the directory exists

Shell-shell example

From: http://www.csdn.net/article/2013-08-15/2816581-What-I-learned-from-other-s-shell-scripts The author Fizer Khan is a shell script fan who is so obsessed with novel and interesting things about shell scripts. He recently encountered an authy-ssh

Shell memo for querying user information in Linux

Author:North SouthSponsorship:From:Linuxsir. orgAbstract:This document describes several tools used in user management, including ID, finger, groups, W, WHO, and users; Directory Index 1. Principles of user query tools; 2. user and group query

One shell script resolves multiple compressed files (change others' code)

One shell script resolves multiple compressed files (change others' code) The core code of this program is written by tram at linuxsir.org. It mainly aims to understand the function of compressing files in a limited time. I added some code to enable

Linux Shell SS

Meaning of SS socket state 1. view links [admin@v035114 ~]$ ssState Recv-Q Send-Q Local Address:Port Peer Address:Port ESTAB 0 0 10.232.35.114:43583

Obtain the MD5 value of a string in shell.

Today's group asked a question:Echo 123 | md5sumBa1f2511fc30423bdbb183fe33f3dd0f-Php-R "Echo MD5 ('20140901 ');"202cb962ac59075b964b07152d234b70The MD5 values of the two are inconsistent, so there are many interesting solutions:1 MySQL

Java Sorting Algorithm Implementation Code-shell sorting

Java Sorting Algorithm Implementation Code-shell sorting /** * The Java sorting algorithm implements code-shell sorting. * * @ Author old zizhu Java century network (java2000.net) * */ Public class test { Public static int [] A = {10, 32, 1,

Shell calls the Stored Procedure

#! /Bin/sh##--------------------------------------------------------### -- Function Description: Call Sp (only SP has 0-4 in parameters and 2 out parameters)# What needs to be improved: parameter type determination# -- Input parameters:# -- $1:

Total Pages: 541 1 .... 259 260 261 262 263 .... 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.