Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Introduction to the connection method of two scripts in shell

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report