Detailed explanation of for loop usage in shell

for command: Various uses of for i in: for i in "file1" "file2" "file3"for i in /boot/*for i in /etc/*.conffor i in $(seq -w 10) -- equal width 01-10for i in {1...10}for i in $( ls )for I in $(< file)for i in "$@" -- take all location parameters, which can be abbreviated as for i Note: the bash shell supports C-type f ...

Posted by Ozzapoo on Fri, 17 Sep 2021 09:24:07 +0200

Shell Scripting Tricks - Here Document Free Interaction and Expect Automation Interaction

Preface In a real production environment, writing shell scripts will inevitably encounter some interactive interfaces, such as raid s and extensions, which require interaction, so we need to use the following non-interactive operations to achieve true shell script automation. 1. Here Document exempt from interaction 1. Overview Provide ...

Posted by PHPHorizons on Wed, 15 Sep 2021 18:38:33 +0200

Phased summary of shell programming + several shell script examples

        I've been learning shell for some time. I've sorted out some basic shell syntax before. Today I'll make a phased summary. In addition, there are several script examples for your reference. Summary brain map Script instance 1. Judge whether the two hosts are ping ed #!/bin/env bash #This script is used to deter ...

Posted by fangfang on Sat, 11 Sep 2021 06:31:41 +0200

Sorting Algorithms in R Language

Prior to writing this blog, I wrote a post called Eight Sorts Programmers Have No Reason Not to Know In that blog, there are detailed descriptions of the eight sorting algorithms. The code implementation is mainly implemented by Java code. Recently, there are many sorting algorithms in R language. So I want to reorganize the sorting algorithms ...

Posted by dazzathedrummer on Tue, 14 Jul 2020 18:11:18 +0200

Late night overtime boring, imitating an EventBus based on reflection

Dry point By reading this blog, you can learn about java's reflection mechanism and how to use custom annotations to solve everyday R&D problems based on the spring lifecycle. Problem Description In daily R&D, it is common to encounter an action triggered by Business A and at the same time trigger the action of Business B. This form of ...

Posted by rross46 on Mon, 29 Jun 2020 18:57:16 +0200

Using lancher2 + kubernetes + skywalking to deploy the spring cloud project (III [jenkins audit and release])

List of articles in this series (under planning) Basic k8s yaml script Publishing helm+shell script optimizes a large number of redundant configuration releases Streamline deployment of jenkins user audit service mesh(istio) service grid Publishing preface Previous Using lancher2 + kubernetes + skyw ...

Posted by rxero on Wed, 24 Jun 2020 04:20:46 +0200

Session, Tensor, Variable OP

Rimeng Society AI: Keras PyTorch MXNet TensorFlow PaddlePaddle Deep Learning Actual Warfare (Update from time to time) 2.3 Sessions, Tensors, Variables OP Learning Objectives target applicationSess.runOr eval runs the diagram program and gets the tensor value Apply feed_dict mechanism to ...

Posted by Pinkerbot on Sat, 20 Jun 2020 03:37:48 +0200

Java OOP inheritance

1, The concept of inheritance Inheritance is a cornerstone of java object-oriented programming technology, because it allows the creation of hierarchical classes. Inheritance means that the subclass inherits the characteristics and behaviors of the parent class, making the subclass object (instance) have the instance domain and methods of the p ...

Posted by Anidazen on Fri, 12 Jun 2020 10:43:12 +0200

mongoDB advanced application

Replica set introduction What is a replica set -MongoDB replication is the process of synchronizing data on multiple servers. -Replication provides redundant backup of data and stores copies of data on multiple servers, improving data availability, And can ensure the security of data. -Replication also allows you to recover data from hardwa ...

Posted by Shibbey on Wed, 06 May 2020 03:09:50 +0200

Linux basic shell array

abstract The property of array is a set of collection with the same data type. Although the shell is of weak type, we can also divide its array into data type array and string type array The shell's array elements are separated by spaces Array operation Suppose you have two arrays array1=(1 2 3 4 5 6) array2 ...

Posted by foobar on Mon, 04 May 2020 01:49:51 +0200