Detailed explanation of shell process control

When we write a program, we often need to judge the execution result of the previous step, so the judgment needs to be realized by using if statement. if statement is mainly used for judgment in our program. 1, if syntax 1.1 single branch if if condition;then Command to execute 1 Command to execute 2 Command to execute 3 . ...

Added by lukeurtnowski on Tue, 28 Sep 2021 22:54:18 +0300

shell script tutorial

shell programming shell overview The parsers provided by Linux are [root@pihao01 ~]# cat /etc/shells /bin/sh /bin/bash /usr/bin/sh /usr/bin/bash [root@pihao01 ~]# Relationship between bash and sh [root@pihao01 bin]# ll |grep bash -rwxr-xr-x. 1 root root 1219248 Nov 9 2019 bash lrwxrwxrwx. 1 root root 4 Nov 9 2019 sh ...

Added by KrisCons on Sat, 18 Sep 2021 02:29:16 +0300

Shell Programming Specifications and Variables

Preface In some complex Linux maintenance tasks, a large number of repetitive inputs and interactions are time-consuming and error-prone. Writing a proper shell script program can accomplish a series of maintenance tasks in batch and automate, greatly reducing the burden of administrators. 1. An overview of Shell scripts 1. What is a ...

Added by ammupon on Tue, 07 Sep 2021 07:29:21 +0300

Electron Cross-Platform Development Practice - chapter08 - Deep Integration (shell module), Dynamic Launch Menu Item

Catalog Use shell module in rendering process (UI interface) Use shell module in application menu Use shell module in context menu Disable Menu Items !! Dynamic Generation Menu Disable menu: enabled:!! filePath Dynamic startup menu: createContextMenu().popup(); Application Menu ...

Added by kentlim04 on Thu, 25 Jun 2020 03:04:27 +0300

Android Solution Android 10.0 Specifies hotspot network non-communicative issues via hotspot name and password connections

1 Question Android 10.0 devices connect to another device through a hotspot name and password to specify a hotspot, but they still cannot communicate with each other and the network is unreachable. The Android 10.0 device connects another set of designated hotspots by hotspot name and password. I'm using the official API and can refer to this ...

Added by modigy on Tue, 23 Jun 2020 04:07:36 +0300

CURD basic operation of MongoDB

Note: This paper is based on MongoDB 4.2.6 1. Delete Delete a document > db.bb.find().pretty() { "_id" : ObjectId("5ed6549830571733ccb3d678"), "jordan" : 23, "haha" : "ending" } { "_id" : ObjectId("5ed6549830571733ccb3d679"), "kobe" : 24, "haha" : "ending" } > db.bb.remove({jordan: 23}) ...

Added by StefanRSA on Sun, 21 Jun 2020 09:46:27 +0300

Pandas: from shallow to deep

What is panda? pandas is a NumPy based tool, which is created to solve data analysis tasks. pandas incorporates a large number of libraries and some standard data models, providing the tools needed to efficiently operate large datasets. pandas provides a large number of functions and methods that enab ...

Added by Braveheart on Wed, 17 Jun 2020 06:08:58 +0300

shell script exercises

1. Count the number of files under / var/log. //find /var/log -type f | wc -l; 2. How to output the running result of F1.txt file to F2.txt? // ./F1 > F2.txt shF1 > F2.txt; 3. Write a script to judge which ip addresses are currently online in the 192.168.1.0/24 network, and ping the gen ...

Added by brbsta on Sun, 14 Jun 2020 05:18:43 +0300

It's multithreaded, so beginners can understand it

What is thread When it comes to threads, we should first understand what a process is. You should be familiar with this picture. The programs we see running separately are independent processes, and the processes are independent of each other. The 360 browser and Baidu cloud disk in the above figure are all independent processes. So what are th ...

Added by davidlenehan on Fri, 12 Jun 2020 09:03:54 +0300

Python 3 web crawler: Comics downloading, dynamic loading, and anti crawler are nothing

    1, Foreword By Jack Cui After the learning of the last two articles, Python crawler takes three steps: request initiation, data parsing and data saving. Have you mastered them? Are they entry-level crawlers? No, it's not enough! Only mastering these skills can only be regarded as layman level. Today, let's continue to learn how to clim ...

Added by cshaw on Thu, 11 Jun 2020 10:01:27 +0300