Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Programming \ Linux shell scripts bubble sort     - 10 tips daily Docker (Server)

- Java concurrent programming using the synchronized keyword ReentrantLock alternative primitive (Programming)

- How to configure FirewallD in RHEL / CentOS 7 and Fedora in (Linux)

- Linux centos rm directory does not prompt (Linux)

- Atlassian Linux Shell Scripting the confluence remote backup methods (Linux)

- RHEL7.0 log system (Linux)

- Programmers Do not neglect debugging techniques (Programming)

- VMware 8 installation configuration Win7, CentOS-7 Wizard (Linux)

- CentOS / Linux kernel upgrade (Linux)

- ld.so.conf.d profile (Linux)

- Android memory optimization of the disk cache (Linux)

- Role Object of registerNatives () method (Programming)

- OpenGL ES 3.0 vertex buffer (Programming)

- Linux kernel likely and unlikely to resolve macro definitions (Linux)

- Linux / Raspberry Pi using the following command-line based web browser (Linux)

- DNF Command Tutorial (Linux)

- High-performance JavaScript reflows and repaints (Programming)

- Linux operating system security management skills notes (Linux)

- WebLogic 12c Configuration Node Manager Managed Server (Database)

- How to configure security management services under Linux (Linux)

 
         
  Linux shell scripts bubble sort
     
  Add Date : 2017-04-13      
         
         
         
  Manually enter his string, and sorts.
Script as follows:

#! / Bin / bash
#a test about sort
echo "please input a number list"
read -a arrs
for ((i = 0; i < $ {# arrs [@]}; i ++)) {
    for ((j = 0; j < $ {# arrs [@]} - 1; j ++)) {
      if [[$ {arrs [j]} -gt $ {arrs [j + 1]}]]; then
           tmp = $ {arrs [j]}
           arrs [j] = $ {arrs [j + 1]}
           arrs [j + 1] = $ tmp
       fi
}
}
echo "after sort"
echo $ {arrs [@]}
     
         
         
         
  More:      
 
- Use GLOBK batch command network adjustment (Linux)
- CentOS 7 repair MBR and GRUB (Linux)
- Linux installation notes under GAMIT (Linux)
- C # Future: Method Contract (Programming)
- To install and configure the Jetty server and JDK under Ubuntu 14.04.2 (Server)
- How to use Linux to download music from Grooveshark (Linux)
- Hadoop 2.5 Pseudo distribution installation (Server)
- Construction LVM-based raw device Oracle10g Database on Oracle Linux 5.11 (Database)
- Ubuntu 14.04 installed Nvidia CUDA 7.5 and build Python Theano deep learning development environment (Linux)
- Linux Security Raiders SSH tools SCP uses examples to explain in detail (Linux)
- Install Redis 2.6 5.5 32 position CentOS error resolved (Linux)
- ADSL router to defend their own network security methods (Linux)
- Linux Tutorial ---- fundamentals of data traffic redirection (Linux)
- Linux Shell Understanding and Learning (Linux)
- MyCAT easy entry (Database)
- HAproxy let IP recording back-end RS (Server)
- Depth understanding of C language (Programming)
- Linux command binlog by filtering out the complete SQL statement (Database)
- High-performance JavaScript loaded and executed (Programming)
- Linux Firewall Builder shorewall (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.