Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Introduction to the connection method of two scripts in shell

Shulou Source: shulou.com Published: 2022-06-03 07:44:51 11月23日 Update

How do the two scripts of shell come together? I believe that many people's understanding of the connection between the two scripts of shell is ignorant. The editor summarizes the following. The following information is an introduction to the connection methods of two scripts in shell.

#! / bin/bash

#

# This is for auto run the script to save the time

#

# By bobo5620301@163.com

# chose the latest 10 file and chose one to run

Array [0] = `ls-lt / mnt/shfw/builds/Griffin/Experimental | awk'{print $9}'| sed-n '2p' `

Array [1] = `ls-lt / mnt/shfw/builds/Griffin/Experimental | awk'{print $9}'| sed-n '3p' `

Array [2] = `ls-lt / mnt/shfw/builds/Griffin/Experimental | awk'{print $9}'| sed-n '4p' `

Array [3] = `ls-lt / mnt/shfw/builds/Griffin/Experimental | awk'{print $9}'| sed-n '5p' `

Array [4] = `ls-lt / mnt/shfw/builds/Griffin/Experimental | awk'{print $9}'| sed-n '6p' `

Array [5] = `ls-lt / mnt/shfw/builds/Griffin/Experimental | awk'{print $9}'| sed-n '7p' `

Array [6] = `ls-lt / mnt/shfw/builds/Griffin/Experimental | awk'{print $9}'| sed-n '8p' `

Array [7] = `ls-lt / mnt/shfw/builds/Griffin/Experimental | awk'{print $9}'| sed-n '9p' `

Array [8] = `ls-lt / mnt/shfw/builds/Griffin/Experimental | awk'{print $9}'| sed-n '10p' `

Array [9] = `ls-lt / mnt/shfw/builds/Griffin/Experimental | awk'{print $9}'| sed-n '11p' `

Cat

Tags: Two script content method put what you have learned into practice value article more status information reference Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Redmi Shulou Information Xiaomi NVidia