Operation of Kali on the 7th chapter of the Linux Bingshu directory using the shell

7.1 Creating and executing shell programs 1487.2 Variables 1497.2.1 Assigning a value to a variable 150The shell uses "=" To assign a variable, or you can change or initialize the value of a variable with an equal sign.7.2.2 Access Variable 1507.3

Shell Traversal Directory Bulk extract file name containing a string and a specific suffix

#!/bin/shmkdir  /home/zhengyk/desktop/tmp   #创建临时文件夹, used to store the extracted files #mkdir  /home/ zhengyk/desktop/local   #创建临时文件夹, used to store filter results List_alldir () {   for file in $ 1/*doif [ -d  $file  ]; thenlist_alldir 

The shell implementation counts the IP and Mac correspondence of a network segment and saves it to a file mac.txt

Tag:shell    binding    ip/mac   arp spoofing    arp virus      #!/bin/bash#function:count the relationship between IP and Mac in a C subnet#created by Comk at Mar.12.2016quitscript () { echo "User Interrupt, Quit ..."} Trap ' quitscript;  Exit 5 '

Find two files containing strings or strings that are not included in shell scripts

First, the demandHere, I simplify, because this afternoon operation both texts are 10 tens of thousands of lines, but only filter out these two files contain the same or different string ppid.Two, step together1. Document HA1Abc2. Document HA2Acd3.

Linux Shell Basics (vi)

Six, shell script programming details of the above five parts of the content, in series to increase the understanding of the Shell 01.shell script shell:# #perl #python#php#jsp different scripts to execute different text, the role of execution is

HBase Shell Common Commands

Quick start from official Hbase HBase (main):003:0> create ' test ', ' CF ' 0 row (s) in 1.2200 secondshbase (main):003:0> list ' test ': 1 row (s) in 0.0550 secondshbase (main):004:0> put ' test ', ' row1 ', ' cf:a ', ' value1 ' 0 row (s) in 0.

Embedded Exam Shell Programming problem

MCU and embedded system exam shell Programming question Bank, simply made the next.9. Similar to the title 7, there is a multiplication operation.#!/bin/bash# test1.SH# 2016.1.2 Echo "Please input N student grade:"Read-A grade for((i=0; i)) Do

Shell detects whether the IP entered is legitimate

Detects whether the IP entered is legitimate#!/bin/bashRead-p "Input An IP address:" Ip_addrN1= ' echo $ip _addr|awk-f. ' {print $} 'N2= ' echo $ip _addr|awk-f. ' {print $} 'N3= ' echo $ip _addr|awk-f. ' {print $} 'N4= ' echo $ip _addr|awk-f. '

Kafka-2.11 Study notes (ii) Shell script Introduction

Welcome to: Ruchunli's work notes, learning is a faith that allows time to test the strength of persistence. Kafka The main shell scripts are[[Email protected] kafka0.8.2.1]$ ll Total  80-rwxr-xr-x 1 hadoop hadoop 

Syntax structure for Bash shell scripts

Purpose: Self-collation, self-review, self-reflection!Content: Dry Goods! Dry!! Dry!!!Attach: The shortcomings of the hope that you correct, can give like me rookie a little inspiration is the best. Just the inspiration ...Thank you: Thank the old

[Shell advanced] The most bull B Linux shell Command (ii)

1. Use your favorite editor to tap the command command After the command has been knocked out, press , will open an editor you specify (such as Vim, through the environment variable $editor specified), which is the

First part Shell Programming 1 basics

Path to the LS Etc/init.d/shell scriptls/usr/local/apache2/Ls/usr/local/apache2/bin/apachectl1. Shell FeaturesOrder history!! !$!n! characterTab key to complete file path or commandAlias a= "B" Unalias AWildcard * Matches 0 or more characters? Match

Linux gets time in the shell

Get the date of the dayDate +%y-%m-%dOutput: 2011-07-28Assigns the current date to a date variabledate=$ (Date +%y%m%d)Sometimes we need to use dates before or after today, so we can use the-D parameter of dateGet Tomorrow's dateDate-d Next-day

Count rows in shell

Today I suddenly wondered how many lines of code I had written recently, and then I used the shell to figure out the most recent code: ? 1 Find/home/chengshuguang/mango-maxdepth 1-name ' *.c '-or-name ' *.cpp '-or-name ' *.h ' |

The difference between an interactive shell and a non-interactive shell

The interactive mode is where the shell waits for your input and executes the commands you submit. This pattern is called interactive because the shell interacts with the user. This mode is also familiar to most users: Log in, execute some commands,

Linux production server shell script sharing

Linux production server shell script sharing2012-6-6 86 Market Network LinuxAs a Linux/unix system administrator, I often meet people asking this question: what can the shell do? PHP is so powerful, why not use PHP to get the job done? In fact,

Hive Shell Common operations

1. Two modes of this article command:Interactive mode, the shell environment for hive:hive > ....Non-interactive mode: normal Linux command mode :% ... ..2.Hive Shell Common operations1) Hive-e: Executes the specified HQL from the command line and

Shell-like Program (Basic implementation portion of Shell programs)

Directly on the code:#include "apue.h" #include int main (void) { char buf[maxline];/* form apue.h 4096 */ pid_t pid; int status; printf ("percent"); /* Print PROMT (printf requires percent to print%) * /while (Fgets (buf,

Shell statement error or abnormal auto Exit Do not continue execution

Today's operation encountered a problem, need to redirect the content to the file, and then rename the use of the file, the result of the redirection has been thrown out of the exception, the following nature will be followed by a variety of

Shell Learning 13-shell echo Command

Echo is an internal command of the shell that prints the specified string on the screen. Command format:Echo ArgYou can use echo to achieve more complex output format control.Show escape charactersecho "\" It is a test\ ""The result will be:"It is a

Total Pages: 541 1 .... 179 180 181 182 183 .... 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.